From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103357 invoked by alias); 20 Jun 2018 18:14:41 -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 95100 invoked by uid 89); 20 Jun 2018 18:14:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*sw, Unicode, HContent-Transfer-Encoding:8bit X-HELO: v2201612906741603.powersrv.de Received: from mail.weilnetz.de (HELO v2201612906741603.powersrv.de) (37.120.169.71) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Jun 2018 18:14:31 +0000 Received: from localhost (localhost [127.0.0.1]) by v2201612906741603.powersrv.de (Postfix) with ESMTP id 66E44DABD48 for ; Wed, 20 Jun 2018 20:14:29 +0200 (CEST) Received: from v2201612906741603.powersrv.de ([127.0.0.1]) by localhost (v2201612906741603.powersrv.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4rtTzlx-LIxp for ; Wed, 20 Jun 2018 20:14:27 +0200 (CEST) Received: from [192.168.178.24] (p5B15159C.dip0.t-ipconnect.de [91.21.21.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by v2201612906741603.powersrv.de (Postfix) with ESMTPSA id 55636DA07FE for ; Wed, 20 Jun 2018 20:14:27 +0200 (CEST) Subject: Re: UTF-8 character encoding To: cygwin@cygwin.com References: From: Stefan Weil Message-ID: <55da3c89-7419-060f-4370-7ed1ba2dd5e8@weilnetz.de> Date: Thu, 21 Jun 2018 10:12:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00233.txt.bz2 Am 20.06.2018 um 20:09 schrieb 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? > > 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 > > Thanks, > Lee ASCII is a subset of UTF-8, so that's fine. The file command will report ASCII as long as your text does not contain any non-ASCII characters. If you add some (for example ÄÖÜ), it should report UTF-8. Regards, Stefan -- 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