By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,886 Members | 1,107 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,886 IT Pros & Developers. It's quick & easy.

retrieve an exception while parsing special characters

P: n/a
hi,

i want to parse a xml-file which has e.g.
the following tag.

<entity file="abc.wav" text="A B C" duration="400"/>

if it is defined like shown above everything works fine, what means,
that StartElement-method and the EndElement-method is called and
i can retrieve the parsed informations.

but if i change the line that special chars a in the text-element (here
a char #234 and a char #233 is used)
<entity file="abc.wav" text="í systém" duration="0"/>
then i get an access violation.

does anybody know what the reason could be ??
the exception happens in a library that i cannont debug!

thanx in advance for help

greets elmar

Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

hi,

i want to parse a xml-file which has e.g.
the following tag.

<entity file="abc.wav" text="A B C" duration="400"/>

if it is defined like shown above everything works fine, what means,
that StartElement-method and the EndElement-method is called and
i can retrieve the parsed informations.

but if i change the line that special chars a in the text-element (here
a char #234 and a char #233 is used)
<entity file="abc.wav" text="í systém" duration="0"/>
then i get an access violation.

does anybody know what the reason could be ??
the exception happens in a library that i cannont debug!

thanx in advance for help

greets elmar

I forgot an important information!!!!!!

I am working with the EXPAT-Parser !!!
Jul 23 '05 #2

P: n/a
Elmar wrote:
hi,

i want to parse a xml-file which has e.g.
the following tag.

<entity file="abc.wav" text="A B C" duration="400"/>

if it is defined like shown above everything works fine, what means,
that StartElement-method and the EndElement-method is called and
i can retrieve the parsed informations.

but if i change the line that special chars a in the text-element (here
a char #234 and a char #233 is used)
<entity file="abc.wav" text="í systém" duration="0"/>
then i get an access violation.

does anybody know what the reason could be ??
the exception happens in a library that i cannont debug!

thanx in advance for help

greets elmar


I forgot an important information!!!!!!

I am working with the EXPAT-Parser !!!


Then you should contact the people that made that parser
and tell them that they have a bug in it.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 23 '05 #3

P: n/a
Latin1 is not UTF8. It is possible your XML file is not UTF8 encoded.
On windows, notepad can be used to save a file as UTF8 (use save-as and
change the encoding).

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.