This is the mail archive of the
mailing list for the Cygwin project.
Re: UTF-8 character encoding
> On 6/20/18, Andrey Repin wrote:
>> Greetings, Lee!
>>> I'm looking at
>>> 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?
> I think I don't know enough to ask the right question. A quick search
> yesterday on byte order markers turned up
> with this bit
> Note Microsoft uses UTF-16, little endian byte order.
Yes, default multibyte Windows encoding is UTF-16LE.
But in general, this is application specific.
> So... keep it simple, set
> 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?
I'm not familiar with vi, but this is true for other *NIX editors I know, they
use current locale settings by default, unless something else is specified in
their configuration or prompted by other cases (like byte order mark).
IMO, best chance is to use an editor that explicitly supports saving texts in
the desired encoding.
And please no BOM for UTF-8 files.
With best regards,
Friday, June 22, 2018 14:13:14
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple