This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

UTF-8 compatibility between Windows and Cygwin


I have (BOM-less) UTF-8 text files that I can read fine in 
Cygwin, but not Windows. When I create text files in Windows 
containing non-ASCII characters, I cannot read them in 
Cygwin. I understand why, but wondering the best way to be 
able to share text files across the two environments. 

I'm pretty sure that I want to keep my Cygwin LANG=C.UTF-8 
setting, but wondering what I can do on the Windows side for 
compatibility and what are the side effects. Currently 
Windows's Command Prompt command chcp shows "Active code 
page: 437". (Is that obsolete or even relevant?)

One solution seems to be to put a BOM in each UTF-8 text 
file; then the files read fine in both environments, but 
that's not conveniently accomplished.

--Ken Nellis

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]