|
From: sfeam <sf...@us...> - 2018-04-24 16:06:42
|
On Tuesday, 24 April 2018 11:37:51 theozh wrote: > Hi, > I am trying to plot a data file under Windows which is located on a network path containing Japanese or Chinese characters. > A command like the following doesn't seem to work: > XXX stands for some Japanese or Chinese characters. > > plot '//server/blabla/XXX/blabla/XXX/datafile.dat' u 1:2 > > I thought gnuplot does understand UTF8...? unix/linux filesystems store file names without making any attempt to interpret or enforce a specific character encoding. On a linux ext4 filesystem it would be possible to have some filenames in UTF8 and others in ISO_8859_5 or whatever. But that is not true on Windows or OSX. On those systems the usual filesystems only accept or permit a certain character encoding as a legal file name. In neither case is UTF8 one of the legal encodings. So if your file is located physically on a Windows machine it is highly likely that the file names are not UTF8. When built for windows (at least for some build environments) gnuplot opens files using a special routine win_fopen() that converts UTF8 names to some other encoding before trying to open it. I must leave the details to someone more familiar with that code. Even so I think there is no guarantee that the encoding chosen by the win_fopen() routine matches the encoding enforced by the disk that the file lives on. > What am I doing wrong? Any ideas, what I could do? Thanks. Stick with linux file systems? Although even there I think you would have to work around the program trying to use win_fopen() rather than a standard fopen() that just takes the filename as-is. Ethan > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |