K
kebabkongen
Hi,
I am trying to parse some data which is edited with a rich text editor
(FCKeditor)
When I se scandinavian characters, they are converted to html encoded
version by the FCK editor
For example:
"Å" becomes "Å"
"Ø" becomes "Ø"
etc
This content is then sent to the SAX parser as a StringBuffer (sr):
mySaxParser.parse( new InputSource( sr), this);
But with the scandinavian characters I get parsing errors. The input
string:
"Å test"
is converted to
"Å test"
by the FCK editor
And then I get this error from the SAX parser:
WARNING: error parsing text: Å test
org.xml.sax.SAXParseException: The entity "Aring" was referenced, but
not declared.
Is there perhaps some way I should escape the ampersand character?
Or what can I do with the data in the StringBuffer above so that the
parsing will work fine?
Regards, PML
I am trying to parse some data which is edited with a rich text editor
(FCKeditor)
When I se scandinavian characters, they are converted to html encoded
version by the FCK editor
For example:
"Å" becomes "Å"
"Ø" becomes "Ø"
etc
This content is then sent to the SAX parser as a StringBuffer (sr):
mySaxParser.parse( new InputSource( sr), this);
But with the scandinavian characters I get parsing errors. The input
string:
"Å test"
is converted to
"Å test"
by the FCK editor
And then I get this error from the SAX parser:
WARNING: error parsing text: Å test
org.xml.sax.SAXParseException: The entity "Aring" was referenced, but
not declared.
Is there perhaps some way I should escape the ampersand character?
Or what can I do with the data in the StringBuffer above so that the
parsing will work fine?
Regards, PML