|
From: Ethan M. <merritt@u.washington.edu> - 2006-12-13 22:45:49
|
On Wednesday 13 December 2006 02:29 pm, Petr Mikulik wrote: > > If I take an older file from my OS/2 times with cp852, and pass it > through gnuplot, I expected there will be the same output. Not that > it will use UTF8 encoding of my Linux box. Same for files copied from > a current Windows box. Then I am afraid you are out of luck. You can only use an encoding that you have installed. How can that possibly be any other way? If you send me a cp852 script, and I run it on my non-cp852 machines, how are they to magically figure out this mysterious encoding? > Gnuplot should behave like TeX or HTML files for ages: belive the > inputenc or codepage written in the file header. I agree with that part. I'm trying to point out that we are not in that situation currently. As it stands today, the encoding information in the output file header is not guaranteed to match the actual file contents. I think what you are asking for is that the gnuplot script itself be marked with an encoding. That may be reasonable, and we could add that to the output of "save", but it wouldn't help older pre-existing scripts that don't have such a header record. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |