How to display unicode characters using a special codepage.

G

Guest

hello all,

Using framework 2.0 I have to display a text, given as a xml data file.
The given text contains extended unicode data (see below '↑' represents
arrow up decimal code # 8593 given as direct unicode # 2191)
<?xml version="1.0" encoding="iso-8859-1" ?>
<help>
<display>&x2191 ;</display>
</help>

The codepage for iso-8859-1 is WindowsCodePage 28591 which is mapped to
codepage Windows-1252.

No culture settings displays the right sign on my DotNet Form.
The TextInfo properties are readonly.

How is it possible to display unicode characters from changing encodings on
my form.
 
H

Herfried K. Wagner [MVP]

tobi said:
Using framework 2.0 I have to display a text, given as a xml data file.
The given text contains extended unicode data (see below '↑' represents
arrow up decimal code # 8593 given as direct unicode # 2191)
<?xml version="1.0" encoding="iso-8859-1" ?>
<help>
<display>&x2191 ;</display>
</help>

The codepage for iso-8859-1 is WindowsCodePage 28591 which is mapped to
codepage Windows-1252.

No culture settings displays the right sign on my DotNet Form.
The TextInfo properties are readonly.

How is it possible to display unicode characters from changing encodings
on
my form.


..NET Windows Forms forms and controls basically deal with Unicode (UTF-16)
encoded text. Strings in .NET are stored in UTF-16 format. If you are
using .NET's XML classes to read the strings from the XML file, you do not
have to change anything except that you have to choose a font which contains
glyphs for the characters you are attempting to display.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top