Jump to content
  • Advertisement
Sign in to follow this  
ukdeveloper

Arabic etc. in VB?

This topic is 4908 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've tried copying and pasting symbols from the character map into the Text and Caption properties, but they just come out as question marks. How can I make such characters from Arabic, Hebrew and Russian etc. show normally on my controls as they should?

Share this post


Link to post
Share on other sites
Advertisement
I don't know about VB, but the coming up as question marks is what happens when windows attempts to convert a unicode character to ASCII. You're going to have to figure out how to implement unicode into your VB program or how to implement code pages for the operating system's language (depending on how your program is supposed to be localized). I'm sorry I can't help more, I don't use VB. Try looking up stuff on unicode and MBCS in VB.

Share this post


Link to post
Share on other sites
What version of VB is this, 6/earlier or .NET? And what is your target OS? (Windows 9X under English, Windows 9X under Arabic or Windows 2k/XP)

Share this post


Link to post
Share on other sites
If I remember right, the VB editor and GUI uses ASCII + your current default code page (which on most Canada/US systems comes configured to ISO-8859-1(Western European?)). Which explains why I can't type or copy/paste Chinese into the control elements, as I just tried out for myself.

However, the VB runtime does use unicode, and its internal string representation is UTF-16. But to get unicode strings on-screen and into form elements, you have to use resource files.

There's a tutorial out there somewhere on that, I just can't remember where. Google it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!