Re: AW: filenames on MS Windows

Allin Cottrell <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <[email protected]>
On Mon, 2 Nov 2020, Ethan A Merritt wrote:

> On Monday, 2 November 2020 01:48:42 PST Bastian Märkisch wrote:
>> Right now, gnuplot is able to "load" file names with Unicode encoded names, i.e. the sequence
>> 	set encoding utf8
>> 	load 'абвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџ.plt'
>> will work just fine.
>
> But only if the encoding is set to utf8, right?
> Which is a bit counter-intuitive since on Windows the
> filename is not actually utf8.

Counter-intuitive maybe, but it's very convenient. "set encoding 
utf8" announces that filenames in the gnuplot script will be UTF-8 
encoded (and the script will be readable cross-platform), but thanks 
to Bastian gnuplot knows they need to be recoded in the background 
to UTF-16 for reading from disk on Windows.

-- 
Allin Cottrell
Department of Economics
Wake Forest University

_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.