[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Lost in Unicode
- From: Enrico Colombini <erix@...>
- Date: Sat, 18 Oct 2003 12:22:07 +0200
I'd like to write an application that operates on text, including string
containing accented letters such as "è" (I hope it shows correctly, it's an
My users could have either ISO-8859-1 or UTF-8 Unicode as their system default
(I can detect this, even if probably not in a portable way). I'd like code
such as the line below to work anyway:
if s == "caffè" then print("perché?") end
Is there a simple way? (assuming the program is written using ISO-8859-1, i.e.
one character = one byte)
I suppose the problem is not unfamiliar in Brazil...