[Pharo-project] UTF-8 support when exporting to XML
Hello, I am wondering, does latest XML Parser get the string value really exported to UTF-8. I am still using an old version #20 of XMLParser (for code compatibility) and I noted that Pharo accented string (still in 8 bits forms as far as I can see) are not converted to UTF-8 when exported in the XML file. Is it still the case with latest XML Parser? Hilaire -- Education 0.2 -- http://blog.ofset.org/hilaire
So far it was an orthogonal problem to XML Parser. I have to submit to XMLWriter a stream with UTF8 converter. StandardFileStream does not handle it, but MultiByteFileStream does. Thanks Henrik. It avoids me to check with latest XMLParser. Hilaire Le 05/08/2011 13:21, Hilaire Fernandes a écrit :
Hello,
I am wondering, does latest XML Parser get the string value really exported to UTF-8. I am still using an old version #20 of XMLParser (for code compatibility) and I noted that Pharo accented string (still in 8 bits forms as far as I can see) are not converted to UTF-8 when exported in the XML file.
Is it still the case with latest XML Parser?
Hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
Hilaire could you write some comments in the XMLParser/Writer classes and methods so that next time we do not get into the same problem? Stef On Aug 5, 2011, at 5:23 PM, Hilaire Fernandes wrote:
So far it was an orthogonal problem to XML Parser.
I have to submit to XMLWriter a stream with UTF8 converter.
StandardFileStream does not handle it, but MultiByteFileStream does.
Thanks Henrik. It avoids me to check with latest XMLParser.
Hilaire
Le 05/08/2011 13:21, Hilaire Fernandes a écrit :
Hello,
I am wondering, does latest XML Parser get the string value really exported to UTF-8. I am still using an old version #20 of XMLParser (for code compatibility) and I noted that Pharo accented string (still in 8 bits forms as far as I can see) are not converted to UTF-8 when exported in the XML file.
Is it still the case with latest XML Parser?
Hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
Hilaire we will start to write a chapter on string encoding with henrik and I would like to have an example on XML could you send me the snippet of code that saved you :) Tx On Aug 5, 2011, at 5:23 PM, Hilaire Fernandes wrote:
So far it was an orthogonal problem to XML Parser.
I have to submit to XMLWriter a stream with UTF8 converter.
StandardFileStream does not handle it, but MultiByteFileStream does.
Thanks Henrik. It avoids me to check with latest XMLParser.
Hilaire
Le 05/08/2011 13:21, Hilaire Fernandes a écrit :
Hello,
I am wondering, does latest XML Parser get the string value really exported to UTF-8. I am still using an old version #20 of XMLParser (for code compatibility) and I noted that Pharo accented string (still in 8 bits forms as far as I can see) are not converted to UTF-8 when exported in the XML file.
Is it still the case with latest XML Parser?
Hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
Steph, The problem is I am using the previous API because as far as I can understand the recent version of ParseXML has a new API (ie does not work with the newset API). May be asking to the artisans of the new API, thought, there are some useful comments in the classes. Hilaire Le 08/08/2011 12:23, Stéphane Ducasse a écrit :
Hilaire
we will start to write a chapter on string encoding with henrik and I would like to have an example on XML could you send me the snippet of code that saved you :)
Tx
On Aug 5, 2011, at 5:23 PM, Hilaire Fernandes wrote:
So far it was an orthogonal problem to XML Parser.
I have to submit to XMLWriter a stream with UTF8 converter.
StandardFileStream does not handle it, but MultiByteFileStream does.
Thanks Henrik. It avoids me to check with latest XMLParser.
Hilaire
Le 05/08/2011 13:21, Hilaire Fernandes a écrit :
Hello,
I am wondering, does latest XML Parser get the string value really exported to UTF-8. I am still using an old version #20 of XMLParser (for code compatibility) and I noted that Pharo accented string (still in 8 bits forms as far as I can see) are not converted to UTF-8 when exported in the XML file.
Is it still the case with latest XML Parser?
Hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
participants (2)
-
Hilaire Fernandes -
Stéphane Ducasse