I have recently encountered a problem with accessing files that have special characters in the file names. Specifically, the stat() function in C program fails to stat the files. The special characters include (a couple examples) the trademark symbol and the n with a tilde above it.
I have looked at internationalization, but the recommendation from " http://www.cygwin.com/cygwin-ug-net/using-specialnames.html
Filenames with unusual (foreign) characters Windows filesystems use Unicode encoded as UTF-16 to store filename information. If you don't use the UTF-8 character set (see the section called “Internationalization”) then there's a chance that a filename is using one or more characters which have no representation in the character set you're using.
In the default "C" locale, Cygwin creates filenames using the UTF-8 charset. This will always result in some
valid filename by default, but again might impose problems when switching to a non-"C" or non-"UTF-8" charset.
To avoid this scenario altogether, always use UTF-8 as the character set.
Suggestions on how to access these files?
Thanks in advance...