> Or do people convert the
> file to UTF-8 after it is generated with some .bat script ?
>
For the record, I tried the following :
- recode (that comes with UnxUtils on Windows) with any of (latin1,
windows-1252, iso-8859-1) as input and utf-8 as output
- iconv of the file on Ubuntu with any of (latin1, windows-1252,
iso-8859-1) as input and utf-8 as output
None of that makes Notepad++ see that the file is UTF-8 and the non
ascii text in the Spanish lang file is even more garbled as though
recode or iconv encoded the file as UTF-8 for a second time.
Funny thing is, when I open the ...lib/openlayers/lang/es.js file in
Notepad++, it readily identifies it as "UTF8 without BOM" and all non
ascii chars are fine! Taking that very file and compressing it along
with the other JS files turns the resulting compressed JS file as an
"ANSI encoding" (for Notepad++). What am I missing ?
On the Python side, I tried :
reload(sys)
sys.setdefaultencoding('UTF-8')
And this seems to have no effect.
Pointers appreciated.
Yves
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users