PDA

View Full Version : escaping characters in xml text nodes



deviant
June 7th, 2003, 10:48 AM
I have an xml file with text nodes used to fill up a FAQ with questions and answers.

The questions are loaded and parsed in a listbox no problem. The answers appear in a dynamic text box. Pretty simple, works great.

My problem is that the text in the listbox displays the ' character but the dynamic textbox doesn't... the text in the dynamic textbox displays the ' character as '

I am aware that usual text files have to be UTF-8 encoded to avoid this kind of issue... but how is it possible to do this with an xml file... Is it possible to fix this during the xml file onload handler? or is it something to do with defining the properties of the dynamic text box?

I'm not very familiar with string manipulation... maybe that's why I can't figure it out...

Any help is greatly appreciated!