From: <bc...@wo...> - 2001-11-26 20:42:15
|
[me] >Naturally [utf-8 and utf-16-be] are totally useless ways of storing >a eurosign on my harddisc. [dman] >Why? If all (relevant) programs read the data as UTF-8 (or UTF-16-be) >then they would all see the same character. True. If that ever happen, we can all reap the benefits. >| So is latin-1 btw: >| >| >>> u"\u20ac".encode("latin1") >| Traceback (most recent call last): >| File "<stdin>", line 1, in ? >| UnicodeError: Latin-1 encoding error: ordinal not in range(256) > >Latin1 doesn't have a eurosign, does it? No. >| The only true and sane encoding to use for windows machines in euroland >| is cp1252: >| >| >>> u"\u20ac".encode("cp1252") >| '\x80' > >I don't see how that is better than the above values, except that is >is likely all other windows programs use cp1252 as well, and thus they >can understand it. Exactly. regards, finn |