Hello, i read a string in a xml file, the string is like this:
1	tre@rtetre	aaaaaaaa	aaaaaaaa
when i print it with qDebug() the "	" is substitute by a "tab" character, what should i do to read the raw string as is in xml file?
thx
Hello, i read a string in a xml file, the string is like this:
1	tre@rtetre	aaaaaaaa	aaaaaaaa
when i print it with qDebug() the "	" is substitute by a "tab" character, what should i do to read the raw string as is in xml file?
thx
The problem occurs when you load the string from the XML file. The parser will convert the "	" sequence to a "\t" sequence.
I believe that a solution is to parse the string right after you load it from the XML, and replace all "\t" appearances with "	". You should do this for all XML escaped sequences. See Canonical XML, paragraph 5.2 for a list of escaped characters in XML.
Or use cdata?
J-P Nurmi
Bookmarks