|
From: <tim...@en...> - 2006-12-13 18:22:01
|
Dr. Johannes Zellner wrote: > ... > well, I had a quick look at unicode for emf. Apparently emf can only do > UTF-16 (little endian). Implementing this is really easy when using > iconv to convert to UTF-16LE. The drawbacks are: > > 1. will loose some characters, e.g. when converting UTF-8 to UTF-16. > =20 UTF-8 and UTF-16 are just two differents encoding schemes for Unicode,=20 i.e. the same range of characters. iconv can convert from UTF-8 to UTF-16 without losing anything. > This gives me the idea of rather having a terminal independent recode > option like > > set recode "from encoding" "to encoding" > > =20 I agree with Ethan: I would rather use the locale mechanism to determine=20 the input encoding, deprecate the 'set encoding' command. Then I would make gnuplot depend on iconv, and each driver could use=20 iconv facility to translate from the locale to its preferred format. Best regards, Timoth=E9e |