|
From: Petr M. <mi...@ph...> - 2006-12-13 22:29:07
|
> If I, sitting at a gnuplot session on my UTF-8 terminal, type "set > encoding cp852" and then type in a bunch of non-ascii characters, any > output file I produce will be internally inconsistent. It will claim at > the top that it is cp852, but the actual contents will be UTF-8. That's > why I want to deprecate the "set encoding" command. It does not really > set the encoding, it just provides instructions to some other program, and > those instructions may or may not be correct. It would be better to > enforce consistency by specifying the actual current encoding in the > output file, as taken from the current locale. Then don't write this command if it is wrong. 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. Gnuplot should behave like TeX or HTML files for ages: belive the inputenc or codepage written in the file header. --- PM |