From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102690 invoked by alias); 21 Jun 2018 01:35:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 102675 invoked by uid 89); 21 Jun 2018 01:35:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=UD:ru, H*F:D*yandex.ru, Repin, andrey X-HELO: forward100j.mail.yandex.net Received: from forward100j.mail.yandex.net (HELO forward100j.mail.yandex.net) (5.45.198.240) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Jun 2018 01:35:04 +0000 Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward100j.mail.yandex.net (Yandex) with ESMTP id DBE255D85249; Thu, 21 Jun 2018 04:35:01 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id l0NGb721mC-Z14GRqxK; Thu, 21 Jun 2018 04:35:01 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 8fZ3DuXUOr-Z1SmeiF1; Thu, 21 Jun 2018 04:35:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 21 Jun 2018 01:26:20 -0000 Date: Thu, 21 Jun 2018 10:39:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1183751257.20180621042620@yandex.ru> To: Lee , cygwin@cygwin.com Subject: Re: UTF-8 character encoding In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00234.txt.bz2 Greetings, Lee! > I'm looking at > https://cygwin.com/packaging-hint-files.html#pvr.hint > and it starts off with > Use UTF-8 character encoding. > How do I do that and how do I check that I actually did use UTF-8 > character encoding _without_ using file? https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/ > for whatever it's worth: > $ file unicode.html > unicode.html: HTML document, UTF-8 Unicode text > $ file test.c > test.c: C source, ASCII text > I used vi to create both files & I'd like to understand why file says > one is ascii & the other is utf-8 -- With best regards, Andrey Repin Thursday, June 21, 2018 4:25:27 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple