473,396 Members | 2,002 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.

Problem displaying Unicode characters on my forms labels and butto

I am having a problem displaying Unicode characters on my Forms labels and
buttons. After coding Button1.Text = unicode; where the unicode is a Unicode
character or string (‘\u1234’ or “\u1234”) It seems to work the first time I
set the button to the Unicode character. After a while, when saving my code,
I get a pop-up window stating that I need to save the file as a Unicode else
my changes will not be saved.

Seance I do not want to save my file as Unicode, because it does not make
any séance for me to save my code file as a Unicode extension. I don’t even
have that extension available and even if I do I don’t think my code will
compile any more.
So when I close visual studio and reopen it, my changes (the line of code:
Button1.Text = Unicode) has been deleted. But if I have Button.Text =
Sometimes it will be replaced by a ? inside the double quote and when running
the program it will display ?.

What change do I need to make so that Button.Text is set to the Unicode
character and will not be deleted if I reload visual studio?

Kidus.

Nov 17 '05 #1
3 5446
In my test VS.NET has not said anything about saving as Unicode and it works
fine, but if VS.NET warns you about saving as unicode, you should do it, at
least for a test. Also, take a look at the File\Advanced Save Options dialog
to select manually the codepage.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Kidus Yared" <Ki********@discussions.microsoft.com> escribi en el mensaje
news:15**********************************@microsof t.com...
I am having a problem displaying Unicode characters on my Forms labels and
buttons. After coding Button1.Text = unicode; where the unicode is a
Unicode
character or string ('\u1234' or "\u1234") It seems to work the first time
I
set the button to the Unicode character. After a while, when saving my
code,
I get a pop-up window stating that I need to save the file as a Unicode
else
my changes will not be saved.

Seance I do not want to save my file as Unicode, because it does not make
any sance for me to save my code file as a Unicode extension. I don't
even
have that extension available and even if I do I don't think my code will
compile any more.
So when I close visual studio and reopen it, my changes (the line of code:
Button1.Text = Unicode) has been deleted. But if I have Button.Text =
Sometimes it will be replaced by a ? inside the double quote and when
running
the program it will display ?.

What change do I need to make so that Button.Text is set to the Unicode
character and will not be deleted if I reload visual studio?

Kidus.

Nov 17 '05 #2
Kidus Yared <Ki********@discussions.microsoft.com> wrote:
I am having a problem displaying Unicode characters on my Forms labels and
buttons. After coding Button1.Text = unicode; where the unicode is a Unicode
character or string (?\u1234? or ?\u1234?) It seems to work the first time I
set the button to the Unicode character. After a while, when saving my code,
I get a pop-up window stating that I need to save the file as a Unicode else
my changes will not be saved.

Seance I do not want to save my file as Unicode, because it does not make
any s?ance for me to save my code file as a Unicode extension. I don?t even
have that extension available and even if I do I don?t think my code will
compile any more.
I don't know what you mean by "a Unicode extension" - your file will
have the same extension as before, but be stored in Unicode.
So when I close visual studio and reopen it, my changes (the line of code:
Button1.Text = Unicode) has been deleted. But if I have Button.Text =
Sometimes it will be replaced by a ? inside the double quote and when running
the program it will display ?.

What change do I need to make so that Button.Text is set to the Unicode
character and will not be deleted if I reload visual studio?


Just save the file as Unicode.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #3
> I am having a problem displaying Unicode characters on my Forms labels and
buttons. After coding Button1.Text = unicode; where the unicode is a .... What change do I need to make so that Button.Text is set to the Unicode
character and will not be deleted if I reload visual studio?


You mean you do that in the code? Sorry, this is just not the right way.
You should have no linguistic data in the code.
Store the string you want in a resource file (which is utf-8), and at runtime
load it and set the text of the button.
--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email
Nov 17 '05 #4

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

Similar topics

1
by: Andrew McCall | last post by:
Hi Folks, I am having a problem with a forms entry using Unicode characters, specifically "smart-quotes". Under Microsoft PWS and MS-SQL 7.0 it works fine and I get the Unicode characters, such...
1
by: David A. Caballero J. | last post by:
I have a 3 layer system, SQL Server 2000 database, COM+ dll's (VC++ 6) and ASP frontend, this system has been in production for quite some time using english, spanish and portuguese versions. Now...
32
by: Wolfgang Draxinger | last post by:
I understand that it is perfectly possible to store UTF-8 strings in a std::string, however doing so can cause some implicaions. E.g. you can't count the amount of characters by length() | size()....
3
by: Christian Nunciato | last post by:
Hi all: I've read through the various related posts in this forum, but without any success as yet. I've got an ASP.NET application built in VS.NET 2003, and I'm trying to get the Armenian...
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...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
11
by: prats | last post by:
I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper for using QT from python. I am able to take input...
2
by: =?Utf-8?B?U2hvb3Rlcg==?= | last post by:
Hi, We have an MCMS Site displaying content in ten different languages. The problem is that when any other language is being used bar english the title which is set to a placeholder is...
7
by: aradhanathawait | last post by:
Hi all If the unicode (Hindi) labels are placed in the JSP pages itself literaly then they are displayed correctly. But in some forms where Labels are coming from property files, ???? is being...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.