--- Begin Message ---
Regarding the problems I have with my firstname and file paths and utf-8 
encoding, I found something weird in the UTF-8 encoding.  In fact, to be more 
precise, I found something strange when converting a String to a ByteArray 
(which UTF-8 encoders convert from)
If I look at the example in the comment of ByteArray>>utf8Decoded, 'Les élèves 
français' is encoded as: 

#[76 101 115 32 195 169 108 195 168 118 101 115 32 102 114 97 110 195 167 97 
105 115]

NOW, if I take that very same string, 'Les élèves français' , and convert it to 
a ByteArray, I get :
'Les élèves français' asByteArray printString.

#[76 101 115 32 233 108 232 118 101 115 32 102 114 97 110 231 97 105 115]

The 2 don't match!
By the way, this problem exists on Pharo 5.1, 6.1 and 7.1 (on Windows 10 )
Can anyone confirm/infirm on another platform to see if this is 
Windows-specific?


----------------- 
Benoît St-Jean 
Yahoo! Messenger: bstjean 
Twitter: @BenLeChialeux 
Pinterest: benoitstjean 
Instagram: Chef_Benito
IRC: lamneth 
Blogue: endormitoire.wordpress.com 
"A standpoint is an intellectual horizon of radius zero".  (A. Einstein)

--- End Message ---

Reply via email to