On 12/11/08 18:23, Alan Yaniger wrote:
Hi list-members,

Clarification of previous post:

I want the result to be stored in the same EditSelection object.

I think you are confusing something here. For one, EditSelection (its underlying ContentNode -> XubString -> String) always stores its data in UTF-16. For another, what you claim to be UTF-8 below looks rather garbled, containing values outside 0--FF hex; and the converted data (lets assume it shall represent Unicode scalar values) is suspicious in that it contains 31 units (and values outside 0--10FFFF hex), more than the 30 UTF-8 units (if I did not miscount).

-Stephan

Thanks,
Alan

Alan Yaniger wrote:
Hi list-members,

I have an object of type EditSelection (defined in svx/source/editeng/editdoc.hxx) , which contains UTF-8-encoded Hebrew.

Example (hex output):
d7 2dc d7 a7 20 d7 17e d7 a2 d7 a8 d7 203a d7 2022 d7 aa 20 d7 a4 d7 aa d7 2022 d7 2014 d7 2022 d7 aa

I want to convert this to a Unicode string, such as:
5d8 5e7 20 5de 5e2 5e8 5db 5d5 5ea 20 5e4 5ea 5d5 5d7 5d5 5ea5d8 5e7 20 5de 5e2 5e8 5db 5d5 5ea 20 5e4 5ea 5d5 5d7 5d5 5ea

How do I do this?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to