Page 1 of 1

UTF-8

Posted: Fri Apr 13, 2007 11:23 am
by Ohlenroth
I use rvxml and want to load and save UTF-8 enccoded text.
I set rvxml property encoding to utf-8
The rvedit component does the loading and saving correctly.

But further transformation of the exported XML file shows some wrong characters. Obviously encoding is not correct.

Are there any other properties/methods with the rvxml and rvedit components which I must set?

I tried UTF-16. This does not work at all

At the moment I manage with 8859-1 encoding but this also shows wrong characters in the range of #128 and #166.
What can I do?
any hints welcome

Posted: Fri Apr 13, 2007 2:20 pm
by Sergey Tkachenko
RVXML does not use encoding, it saves text as it is.

UTF-8

Posted: Mon Apr 16, 2007 7:02 am
by Ohlenroth
Yes, I understand that rvxml does not do any encoding.
My problem is, that I do not get all characters exported correctly.

What must I do to get a valid utf-8 encoded text from richviewedit components?
thanks
Markus

Posted: Wed Apr 18, 2007 5:47 am
by Sergey Tkachenko
I was wrong.
In the latest version of RVXML, if you specify Encoding='utf-8' (character case is not important), all text (both ANSI and Unicode items) must be saved in UTF-8 encoding. If it does not happen, this is a bug, please send me document reproducing it.
If any other encoding string is specified, no conversion is performed (ANSI text is saved as it is, Unicode is saved as &#NNNN codes). So, specifying UTF-16 as encoding will lead to broken XML.