Le 9 janvier 2009 à 10:10, Nicolas Gaiffe a écrit :
> There must be an encoding issue at some point in my script but I
> didn't manage to fix it (tried different values of '#encoding:'
> without success). Any clue ?
It depends. If you are trying to echo something to the console, you'll
have to use CP850.
The character for ä is 228 in the ISO8859-1 [1] encoding that your file
seems to use, and that corresponds to the õ character in CP850 [2].
Now, if you're writing something on the screen as a means of control or
debug while manipulating files, don't convert your output to CP850 in
your resulting file ! You'd better stay in ISO, or maybe even in UTF-8,
depending on what your real goal is (website, internal application,
database, etc).
Fred
[1] :
http://en.wikipedia.org/wiki/ISO/IEC_8859-1
[2] :
http://en.wikipedia.org/wiki/Code_page_850
--
I don't need no arms around me I don't need no drugs to calm me
I have seen the writing on the wall Don't think I need anything at all
No, don't think I'll need anything at all
(Pink Floyd, Another Brick in The Wall part 3)