I am guessing the format of the string might be UTF-16?
I think the 0 in position 1 is interpreted as the end of the string.
How can I read this string properly?
Thank you!
Christian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-01-19
meh, I removed the � bits using a text editor and now the text reads fine. That's all I wanted at the moment.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have a bit of a problem reading an xml-file and I hope you can help. It would be greatly appreciated :)
The xml-file contains localisation data and looks like this:
My code to read the value attribute looks like this:
This only returns the first character of the string in value. I checked the memory and it contains the rest of the string:
strAttr 65 'A' const char
strAttr 0 const char
strAttr 110 'n' const char
strAttr 0 const char
strAttr 119 'w' const char
strAttr 0 const char
strAttr 101 'e' const char
I am guessing the format of the string might be UTF-16?
I think the 0 in position 1 is interpreted as the end of the string.
How can I read this string properly?
Thank you!
Christian
meh, I removed the � bits using a text editor and now the text reads fine. That's all I wanted at the moment.