Re: Displaying characters on a form from another code page
- From: "Serge Wautier" <serge@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Jan 2008 08:47:35 +0100
Arial Unicode MS doesn't come out of the box with Windows. It's part of Office.
I would rather recommend Microsoft Sans Serif or Tahoma.
Note that in most cases, your best bet is simply not to select any font: Windows usually does a good job at selecting the right font for you if the selected one doesn't contain the needed glyphs.
My 2 cents,
Serge.
http://www.apptranslator.com - Translating your app is easier than you think
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> wrote in message news:uvcc7bfYIHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
<adiel_g@xxxxxxxxxxx> schrieb:I am trying to display some data that I received into a form. The
form is in english. The data is in cyrillic (russian) which uses
codepage 1251. I am trying to change the button text to russian. For
example:
cmdCancel.Text = "Îòìåíèòü"
Windows Forms controls are unicode-aware. Read the into a string (take a look at 'System.Text.Encoding.*') and simply assign it to the control's 'Text' property. Note that youÄll have to select a font which contains glyphs for the characters you want to display (such as Arial Unicode MS).
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
.
- Follow-Ups:
- References:
- Displaying characters on a form from another code page
- From: adiel_g
- Re: Displaying characters on a form from another code page
- From: Herfried K. Wagner [MVP]
- Displaying characters on a form from another code page
- Prev by Date: ANN: VintaSoftBarcode.NET Library v2.0 has been released.
- Next by Date: How to connect two systems in java
- Previous by thread: Re: Displaying characters on a form from another code page
- Next by thread: Re: Displaying characters on a form from another code page
- Index(es):