From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111889 invoked by alias); 21 Jun 2018 18:49:31 -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 111875 invoked by uid 89); 21 Jun 2018 18:49:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=desktop, sk:www.joe, sk:wwwjoe, Repin X-HELO: mail-it0-f54.google.com Received: from mail-it0-f54.google.com (HELO mail-it0-f54.google.com) (209.85.214.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Jun 2018 18:49:29 +0000 Received: by mail-it0-f54.google.com with SMTP id n7-v6so6160217itn.1 for ; Thu, 21 Jun 2018 11:49:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=LMMGaVT/eoQdq4M0loyKBCOhBMLb78xVfHO4Um2rXy8=; b=I+VaaRPQqJgMP+fSYXdCOWGvNYKhudrsjbs/4V0ZWtUhtRzYWbtk0iS3OsEcjB+akk Rfzhxe10qvsrZZKXvAy/tIbYYWIunBNtWsHs3Q8Hky/okGe5Zukd6P8YivOoX5N1dfP2 e7L5qW78bPgGBviNP/Sa1w4zUm3GsTaAI6orypT+bceUZRsAN5YVnmWeGv5nef8Gh6il PCQycY5sNWp8KqJTPd5mcgBelypGW69EBXxtjuRBoaGQD1Wh3uG9j/FxPTw3yz1yrJYz tslvmwhhP9dYtb9OsG5m06Z+EH0iBD0Ax+0WQJPQYvzEXnGr/bnEJT3H0E3p+fqlBFIU RhNQ== X-Gm-Message-State: APt69E3j3UxEQlzw0wpftS20jvMRN4wDc4355fEgoT/XnEWRgP8e1bBI DCDnALKdDJbv7AOOq3Xo8S7JD2KjD0t1LrJzYw8= X-Google-Smtp-Source: ADUXVKIvYg44hqrOJ9Qd2osxkwmBrf1jmrj+eDPOVgURY9e4I9TGPHWoecrercTv2ZDiDwdXROr8pMuJD/d1g63p+mE= X-Received: by 2002:a02:a482:: with SMTP id d2-v6mr4668180jam.123.1529606967156; Thu, 21 Jun 2018 11:49:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:dd1:0:0:0:0:0 with HTTP; Thu, 21 Jun 2018 11:49:26 -0700 (PDT) In-Reply-To: <1183751257.20180621042620@yandex.ru> References: <1183751257.20180621042620@yandex.ru> From: Lee Date: Fri, 22 Jun 2018 07:31:00 -0000 Message-ID: Subject: Re: UTF-8 character encoding To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00239.txt.bz2 On 6/20/18, Andrey Repin wrote: > 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/ I think I don't know enough to ask the right question. A quick search yesterday on byte order markers turned up https://msdn.microsoft.com/en-us/library/windows/desktop/dd374101(v=vs.85).aspx with this bit Note Microsoft uses UTF-16, little endian byte order. So... keep it simple, set LANG=en_US.UTF-8 and use vi or something else that comes with cygwin to create the file and I'll have a file with UTF-8 character encoding - correct? Thanks, Lee -- 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