delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/21/14:49:41

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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=J3hi3AO
g3AsD5O0FlPz6N7SF/dW9PxGqd6mPqt0ukfcCO6X0Mp7AlRmIGwsw4cUZEfje3y6
ii/1LaMrLrtHk19kyhMihXRNkbbB2C0CbRbE0/sDKUf0myPjTCk8nBm7eykQIoPb
3gNNIt/xy+mFUyR7ggfu8Xj9tUS9RLiAeQ3s=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=IL59ns7vVEz7b
JcB+m6pMVNeNWs=; b=rdb7m5XL7JTXuyCR35v+N9Ty5JB542RH0GRumfQKXTrb6
29ekHQNhmtjQsmWsomI3gzP9YISAHjtjG11r1yZpwmNSShDZfoWMV/EaGjesfVhV
oJk9TkJvnrYVHjCTjR18IZNTPHZAKmrtO9LAnClVIorK41rHODlAIr4Qbpl/HU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.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
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
In-Reply-To: <1183751257.20180621042620@yandex.ru>
References: <CAD8GWss253v-p+FjeonEqibr53v6wZRCQ+NWxBhb0LimQaM4sQ AT mail DOT gmail DOT com> <1183751257 DOT 20180621042620 AT yandex DOT ru>
From: Lee <ler762 AT gmail DOT com>
Date: Thu, 21 Jun 2018 14:49:26 -0400
Message-ID: <CAD8GWsuo3PuQSdSyMRhbxZQXa=GUSBcyes7QEaqDYfh3FCof0Q@mail.gmail.com>
Subject: Re: UTF-8 character encoding
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019