Hello friends,
I am parsing an xml document by using a QXmlStreamReader object (reader)
It works good; but sometimes it adds an escape character ( \a ) at the end of the text(sometimes also to the beginning) read from xml doc. For example:
searchedLink = reader.text().toString();
searchedLink = reader.text().toString();
To copy to clipboard, switch view to plain text mode
searchedLink = "http://www.sabah.com.tr/2008/12/31/haber,488A30CE223F4E15842D3606D3FE2880.html\a"
instead of
"http://www.sabah.com.tr/2008/12/31/haber,488A30CE223F4E15842D3606D3FE2880.html"
athough there is no "\a" at the end of the link in the original xml doc.
What may be the cause of that situation?
To fix this, I tried:
searchedLink.remove("\a",Qt::CaseInsensitive)
searchedLink.remove("\a",Qt::CaseInsensitive)
To copy to clipboard, switch view to plain text mode
But, remove function can't find "\a" character (an escape character issue, it think)
How can i remove an escape character?
Thanks in advance..
Bookmarks