473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Displaying characters on a windows form from another codepage

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 = "Îòìåíèòü"

Those are garbage characters which I dont mind if they are in that
format in the code. But when the actual button is displayed on the
screen, I want the real cyrillic (russian) characters to be
displayed. This will be used to translate all the buttons on the page
to cyrillic (russian). My question is how do I change the form to
show characters in cyrillic (russian) without changing the codepage
for the entire computer?

To get an idea of what I am looking for, I would like to run some type
of command such as:

me.codepage = 1251 ' This command does not exit, just a sample of
what I am looking for.

to display the cyrillic (russian) characters for the entire form...

Thanks Before Hand,
Adiel
Jan 28 '08 #1
4 2575
<ad*****@hotmail.comschrieb
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 = "ÎòìåÃ*èòü"
If I enter cyrillic characters in source code, they display fine on the
button. (using default font "Microsoft Sans Serif").

cmdCancel.Text = "ФЙ"

Where do you store the texts? Where do you read them from?

(Note that this posting is UTF-8 encoded)
Armin
Jan 28 '08 #2
>My question is how do I change the form to
show characters in cyrillic (russian) without changing the codepage
for the entire computer?
In my idea you cannot. The characters are displayed by the OS, as that does
not has the codepages installed for that, what should it do then? (Be aware
that this is not so clear in Vista as it was in past).

Cor

Jan 29 '08 #3
<ad*****@hotmail.comschrieb:
>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 = "Îòìåíèòü"
Please do not multipost. I replied in the Windows Forms group.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jan 29 '08 #4
I found out what the problem is. The file they sent me with the
russian characters to use was in "russian ANSI" (not sure if this is
what it is called). So when I opened the file and pasted the
characters in the button I got this:

cmdCancel.Text = "ÎòìåÃ*èòü"

Since the originating user that created the file has a different code
page in windows, the characters could not be read properly on my
system. I will have him sent me a file that is unicode format. That
file I should be able to read. Then I can place the characters
directly in the code as explained above:

cmdCancel.Text = "ФЙ" ' <- characters are already in the correct
format, they will display correctly.
I have learn this also:

1. If you are saving characters from another code page in your form
using vs2005, visual studio will automatically show a prompt asking if
you want to change the format of the source code file from ANSI to
UNICODE. (Of course you would answer yes to keep the russian
characters in the correct format in your source code)

Thanks Everyone,

Adiel

Jan 29 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Pikkel | last post by:
i'm looking for a way to replace special characters with characters without accents, cedilles, etc.
0
by: Frlo | last post by:
Hi, I have problem that I tried to solve but i missed out. My situation: I have problem that my page www.vodotika.sk display some wrong characters. Apache server 2.0.54 runs on windows-1250...
10
by: John Byrne | last post by:
I have encountered a problem when certain European characters are included in the Querystring of an URL. If I have a URL like: ?param=AAà On the receiving page a simple Request() call returns...
4
by: Sam | last post by:
Is there a way to display Asian fonts in Access 97? If not, how about subsequent versions? One thought is I was able to display Asian fonts in Visual Basic using a browser control, which in turn...
4
by: Kivanc Toker | last post by:
Hi, I've got a problem with displaying texts with turkish characters. There is a website administration system, which is developed using ASP (VBScript) and ADO. This system is being used for...
2
by: David Scemama | last post by:
Hi, I'm looking for a way to display semi graphic characters in a multi line text control or in a rich text control. I've tried with all the characters of the extended ASCII table (code page...
3
by: MrMoMo | last post by:
How do I Pass chinese characters, charset GB2312 and BIG5, from Form to SQL using asp? My field in SQL is already set to nvarchar. Any help is much appreciated. Thanks.
25
by: Wim Cossement | last post by:
Hello, I was wondering if there are a few good pages and/or examples on how to process form data correctly for putting it in a MySQL DB. Since I'm not used to using PHP a lot, I already found...
0
by: Nickneem | last post by:
I'm having trouble getting the output of a (MS SQL server) query in html: ± is displayed as &# 177 ; and -» as - &# 187 ; not to mention the acute accent (é) and other diacritic characters. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.