Sign in to follow this  

Arabic etc. in VB?

This topic is 4696 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
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
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

This topic is 4696 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this