X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=avCTNDLhiCyK8T2y DhOmzH1SxilLWEnSRIJNyt2ri5kHDHV22TWRrMRaZEQphD0rD31XEV8bxNS8brkO 0OX+k2CfpiShaNlgiEf7Xadix5Fwv+M7QIcuw9XdE76ZFQs8ZRnYHzH89VDhVlOS OR31kpluuUMHe6Klrdd8solshbE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=UhZu0+F6yL4TqWbfF3VkAP ljFZE=; b=p43SnCyyACIE3wlKKY16Dzm7036Ck5bSlrTxzptZUMqSNUrvmQjfx/ EJQG0yc6FOvUkdzDFNjo/apT+YvSjMAUAcHZGFwLdTd8lPeKVW227SaC2XIsYelU 2YbV5rT6NRcqJ7RlChT7QR463csKoVkH7QD5eT6JK7uCQoO8T6PVw= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Thu, 21 Jun 2018 04:26:20 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1183751257.20180621042620@yandex.ru> To: Lee , cygwin AT cygwin DOT 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 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