Using unicodes in windows application.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We have a requirement where, we get unicodes from the server and we need to
display them on labels present n the windows form.

I have searched but couldn't find a way to use Unicodes directly or convert
them to ascii code.
example: £ for pound symbol £.

Any ideas or suggestions.

Thanks,
Vinay Kant
 
Vinay Kant said:
We have a requirement where, we get unicodes from the server and we need
to
display them on labels present n the windows form.

I have searched but couldn't find a way to use Unicodes directly or
convert
them to ascii code.
example: £ for pound symbol £.

Windows Forms controls are in general Unicode-aware. "£" just works fine on
my German Windows XP machine.
 
why do you need ASCII? try
label1.Text = '\u0040' or any other unicode
 
Vinay Kant said:
We have a requirement where, we get unicodes from the server and we need to
display them on labels present n the windows form.

I have searched but couldn't find a way to use Unicodes directly or convert
them to ascii code.
example: ? for pound symbol ?.

You don't need to do any conversion. The only thing you might need to
do is make sure that the font you're using supports the symbols you
need to display. For things like a pound symbol, however, it should be
fine by default.
 

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

Back
Top