Hi,
I'm trying to output unicode string into RTF format. (using c# and winforms)
From wikipedia:
If a Unicode escape is required, the control word \u is used, followed by a 16-bit signed decimal integer giving the Unicode codepoint number. For the benefit of programs without Unicode support, this must be followed by the nearest representation of this character in the specified code page. For example, \u1576? would give the Arabic letter beh, specifying that older programs which do not have Unicode support should render it as a question mark instead.
I don't know how to convert Unicode character into Unicode codepoint ("\u1576"). Conversion to UTF 8, UTF 16 and similar is easy, but I don't know how to convert to codepoint.
Scenario in which I use this:
- I read existing RTF file into string (I'm reading template)
- string.replace #TOKEN# with MyUnicodeString (template is populate with data)
- write result into another RTF file.
Problem, arise when Unicode characters arrived