help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Encoding issue with french characters


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Encoding issue with french characters
Date: Sat, 27 Feb 2010 16:43:55 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1

On 02/26/2010 08:24 PM, Nicolas Petton wrote:
Hi,

I think there is an encoding issue with french characters (every
non-ascii character?):

st>  'é' first == 'à' first
true

st>  'é' first value == 'à' first value
true

In UTF-8 they start the same:

st> 'é' asByteArray
ByteArray (195 169 )

st> 'à' asByteArray
ByteArray (195 160 )

With the Iconv package loaded,

st> 'é' first == 'à' first
true

st> 'é' encoding
'UTF-8'

st> ('é' asString: 'UTF-8') first == ('à' asString: 'UTF-8') first
true

but...

st> 'é' asUnicodeString first == 'à' asUnicodeString first
false

st> ('é' asString: 'ISO-8859-1') first ==
st>    ('à' asString: 'ISO-8859-1') first
false

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]