On 20 Jan 2015, at 16:21, Hilaire <hilaire@drgeo.eu> wrote:
I forgot again Pharo internal string are not utf-8 but ByteString, so the string need to be converted back to utf8.
No they are not - Strings and Characters in Pharo are using plain Unicode encoding internally. What you see in your particular case is that an external string comes in, originally encoded in UTF-8, yet the VM or maybe some code at the image level, just took the incoming string or bytes and just converted them directly to a Pharo string, not using the proper encoding. Your fix corrects that fault by re-interpreting the wrongly decoded characters as bytes using the correct encoder. http://stfx.eu/EnterprisePharo/Zinc-Encoding-Meta/ The general problem is probably that the VM or image level does not know what encoder to use (just guessing). Sven