Have a problem reading the ascii codes

I have a problem reading the ascii codes. Well I am trying to read the languages like Greece and Chinese characters. On my form I have received incorrect words something like this:

?e?

I am trying to get my experience for months to find ways how I could read ascii codes for my application. Maybe I should get ascii table, languages script or support control but have already tried on LoadResString. They will do nothing and will do the same things as when I am reading on ini string. I still have no luck to make a successful. The ascii codes which it should read like this:

Αρχείο

Any idea how you can help me out with this??

Hope you guys have a better experience to help me out.

Thanks,
Mark
[784 byte] By [mark103] at [2007-11-20 11:49:19]
# 1 Re: Have a problem reading the ascii codes
Search for UNICODE. VB supports it, but not all controls do.
dglienna at 2007-11-9 19:32:15 >
# 2 Re: Have a problem reading the ascii codes
Search for UNICODE. VB supports it, but not all controls do.

Thanks for your advice, please can you direct me to the page where I can sort that out because I don't know which one would be easier for me to use??

Thanks,
Mark
mark103 at 2007-11-9 19:33:21 >
# 3 Re: Have a problem reading the ascii codes
I'll tell you how to do this. SEARCH -> ADVANCED

then fill in the keyword UNICODE

then click the VB6 tab

then click SEARCH

Your thread was #1 because I mentioned it. This is #2.

http://www.dev-archive.com/forum/showthread.php?t=434250&highlight=UNICODE

Find the rest in the same manner.
dglienna at 2007-11-9 19:34:23 >
# 4 Re: Have a problem reading the ascii codes
I am sorry but you still post in the wrong notice. I am NOT looking for http protocol, I am here looking for how to read ascii code like reading the chinese traditional characters language. But I still dont find any good one for months?? :mad:

Please advance!!!!

Thanks,
Mark
mark103 at 2007-11-9 19:35:18 >
# 5 Re: Have a problem reading the ascii codes
Incidentally I try to do something very similar, or so it seems.
I'm struggling around with cyrillic alphabet to get russian localization.

I have not yet continued because of other problems, but there is a lot of confusion about coding of foreign characters.
To have something which works with VB controls, I found me a characterset which has the cyrillic letters coded from Chr(128) to Chr(255), being able to be displayed in a VB control.
Related information might be found, reading on the "codepages" windows supports.
You'd have to find a Font in that language you want, which fits to the codepage of that country (e.g. 1251 is the codepage for cyrillic).
Then you can enter these characters using the keyboard layout for the same country.
It worked for me so far, but I'm not ready yet.

I must admit, I never succeeded in transferring texts from cyrillic websites successfully to VB TextBox or even RichTextBox controls, since they use Unicode stuff which does not work with VB controls in the web.
But as I saw you can find greek and other Fonts for the apropriate codepages to achieve these character sets.

The only way I saw was to go over a Font which will then be installed on the system and to set the TextBox or Label.Font property to that font.
Then you can type in foreign characters with a foreign keyboard layout.

Important for you: You can mark these texts and paste them into your ini files. They look like "" then, but represent the right characters when the proper font is installed.
WoF at 2007-11-9 19:36:23 >
# 6 Re: Have a problem reading the ascii codes
Check out VB Forums. Merri used to be real good at unicode, and speeding things up in general.
dglienna at 2007-11-9 19:37:19 >
# 7 Re: Have a problem reading the ascii codes
Ok, thanks for the advance guys! I will do my best as I can but if I can't find anything then I would do my best to contact Merri or I will come back to the forum. If you have any details where I can get many fonts and the codes to setup with many languages characters for my program which I need it, please don't forget to post them on here as I need it to work out on my form.

Thanks,
Mark
mark103 at 2007-11-9 19:38:29 >
# 8 Re: Have a problem reading the ascii codes
The best place that I've found for information on how Unicode works is here: http://unicode.org/

What others have stated about the font and control support is true - the correct font needs to be installed, and the control in question must support Unicode. If I recall correctly, VB can do Wide ASCII. There are functions such as ChrW$(), AscW(), etc, though if I'm not mistaken, Chinese requires more than two bytes.
WizBang at 2007-11-9 19:39:27 >
# 9 Re: Have a problem reading the ascii codes
The best place that I've found for information on how Unicode works is here: http://unicode.org/

What others have stated about the font and control support is true - the correct font needs to be installed, and the control in question must support Unicode. If I recall correctly, VB can do Wide ASCII. There are functions such as ChrW$(), AscW(), etc, though if I'm not mistaken, Chinese requires more than two bytes.

Thanks for the link, I have took around and couldn't find anything, please can you advice where and which one I should use for my forms??

Thanks,
Mark
mark103 at 2007-11-9 19:40:25 >
# 10 Re: Have a problem reading the ascii codes
The best place that I've found for information on how Unicode works is here: http://unicode.org/

What others have stated about the font and control support is true - the correct font needs to be installed, and the control in question must support Unicode. If I recall correctly, VB can do Wide ASCII. There are functions such as ChrW$(), AscW(), etc, though if I'm not mistaken, Chinese requires more than two bytes.

Nope. Unicode is two bytes. ChrW() is Unicode support.
dglienna at 2007-11-9 19:41:29 >
# 11 Re: Have a problem reading the ascii codes
anyone?
mark103 at 2007-11-9 19:42:33 >
# 12 Re: Have a problem reading the ascii codes
Nope. Unicode is two bytes. ChrW() is Unicode support.
Actually, from what I've read on the official Unicode site, Unicode has a few standards, using up to four bytes. As I understand it, this was done to support more languages. A Unicode aware program is expected to detect which is being used, based on specific bit values.
WizBang at 2007-11-9 19:43:32 >
# 13 Re: Have a problem reading the ascii codes
Actually, from what I've read on the official Unicode site, Unicode has a few standards, using up to four bytes. As I understand it, this was done to support more languages. A Unicode aware program is expected to detect which is being used, based on specific bit values.

Please can you direct me to the page where I would like to start to work with unicode to make the program detect and please can you tell me what to do??

Thanks,
Mark
mark103 at 2007-11-9 19:44:26 >
# 14 Re: Have a problem reading the ascii codes
Please can you direct me to the page where I would like to start to work with unicode to make the program detect and please can you tell me what to do??

Thanks,
Mark
It isn't necessary to know how to decode the values if you are going to use a Unicode-aware control. Simply using the proper font and control will do the trick.

Try a search on Google for the sort of control you need (label, textbox, etc). There should be a number of them to choose from.

<EDIT>
http://support.microsoft.com/kb/193540
http://www.google.com/search?hl=en&q=unicode+activex
WizBang at 2007-11-9 19:45:35 >
# 15 Re: Have a problem reading the ascii codes
It isn't necessary to know how to decode the values if you are going to use a Unicode-aware control. Simply using the proper font and control will do the trick.

Try a search on Google for the sort of control you need (label, textbox, etc). There should be a number of them to choose from.

<EDIT>
http://support.microsoft.com/kb/193540
http://www.google.com/search?hl=en&q=unicode+activex

Thanks for the links, unfortunately most of them are pay and some of them wasn't nice for me to use :(

I dont know which one would be useful??

EDIT: I just found this one, it pretty good but when I press on the command box 'Go' and the language didn't change for menu. I can't upload the controls because the attachment is too big :(

Any advance would be much appreciate??

Thanks,
Mark
mark103 at 2007-11-9 19:46:30 >
# 16 Re: Have a problem reading the ascii codes
please anyone?
mark103 at 2007-11-9 19:47:34 >
# 17 Re: Have a problem reading the ascii codes
If you are at the very beginning of your project it might be a good idea to switch to VB.NET. I made some rough tests and found that .NET controls seem to support Unicode inherently. You can e.g. copy from a chinese web page and paste into a textbox. So I assume the other controls support it, too. As you are a beginner it might not be too late to change over to VB.NET. The Express compiler can be downloaded free from Microsoft.

I don't know where it would lead you if you try to get full unicode support into VB, but I could fancy that it would fastly exceed your knowledge and programming abilities. Even mine, possibly. I looked at some of the links your google search brings up and found everything rather complicated, cannot handle rar archives properly (or so it seems) and have no time to tinker around for hours with that stuff.

I have only a standard windows installation, no extra stuff or language support, but creating a simple Form with a TextBox in VB.NET allowed me already to copy some russian text (using cut and paste from internet explorer) into it and copy some chinese characters underneath in the same box. This is much more promising as all other things I tried.

Finally you have to consider that you have possibly to do some string operations within your application, too. I'm not sure what VB6 does with Multibyte Unicode strings, albeit any 3rd party controls are used.
WoF at 2007-11-9 19:48:31 >