Unicode doesn't seem to be supported in VB5 controls
Author |
Message |
G. Urban #1 / 5
|
 Unicode doesn't seem to be supported in VB5 controls
I am having a hell of a time trying to get a Unicode character to appear in a text box/rich text box/label etc.... I have tried varying controls to see if any can support Unicode but I have not had any success. All I want to do is show an arrow pointing up in a text box. If you go into character map, using the font "Courier New" and select the subset "Arrows", and select the up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb apps text box, all you get is a question mark, which means the code is unknown. The control has been set to the correct font but it doesn't work!!!! I have tried using the CHRW function but this also gave me the famous question mark. The code for the up arrow is 8593. The only way I was able to determine this was to use a program which can use Unicode - excel, and write a script to go through all codes until I found the code I wanted. In then replicated the chrw(8593) function in VB (which works fine in Excel), but this was to no avail. Does anyone have an solution to my delema? Does VB5 controls support the new standard developed by Microsoft for extended characters? Regards, Grant
|
Thu, 31 Aug 2000 03:00:00 GMT |
|
 |
Dave & Sara Emmer #2 / 5
|
 Unicode doesn't seem to be supported in VB5 controls
Yep, VB 5 doesn't support Unicode (or at least under Windows95). I ended up using extended characters and changing the codepages. Also, there is no easy way to change codepages in runtime. Dave Emmert Quote:
> I am having a hell of a time trying to get a Unicode character to appear in > a text box/rich text box/label etc.... I have tried varying controls to see > if any can support Unicode but I have not had any success. All I want to do > is show an arrow pointing up in a text box. If you go into character map, > using the font "Courier New" and select the subset "Arrows", and select the > up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb > apps text box, all you get is a question mark, which means the code is > unknown. The control has been set to the correct font but it doesn't > work!!!! > I have tried using the CHRW function but this also gave me the famous > question mark. The code for the up arrow is 8593. The only way I was able > to determine this was to use a program which can use Unicode - excel, and > write a script to go through all codes until I found the code I wanted. > In then replicated the chrw(8593) function in VB (which works fine in > Excel), but this was to no avail. > Does anyone have an solution to my delema? Does VB5 controls support the > new standard developed by Microsoft for extended characters? > Regards, > Grant
-- Dave & Sara Emmert
homepage: www.geocities.com/~demmert
|
Fri, 01 Sep 2000 03:00:00 GMT |
|
 |
Robert Teixeir #3 / 5
|
 Unicode doesn't seem to be supported in VB5 controls
Actually, VB5 handles Unicode extrememly well. However, the controls in question are standard windows controls (maintained by the OS and not VB). Internally, these controls depend on C-style null-terminated ascii strings (at least in win95). -Rob
Quote: >Yep, > VB 5 doesn't support Unicode (or at least under Windows95). I ended up >using extended characters and changing the codepages. Also, there is no easy >way to change codepages in runtime. >Dave Emmert
>> I am having a hell of a time trying to get a Unicode character to appear in >> a text box/rich text box/label etc.... I have tried varying controls to see >> if any can support Unicode but I have not had any success. All I want to do >> is show an arrow pointing up in a text box. If you go into character map, >> using the font "Courier New" and select the subset "Arrows", and select the >> up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb >> apps text box, all you get is a question mark, which means the code is >> unknown. The control has been set to the correct font but it doesn't >> work!!!! >> I have tried using the CHRW function but this also gave me the famous >> question mark. The code for the up arrow is 8593. The only way I was able >> to determine this was to use a program which can use Unicode - excel, and >> write a script to go through all codes until I found the code I wanted. >> In then replicated the chrw(8593) function in VB (which works fine in >> Excel), but this was to no avail. >> Does anyone have an solution to my delema? Does VB5 controls support the >> new standard developed by Microsoft for extended characters? >> Regards, >> Grant >-- >Dave & Sara Emmert
>homepage: www.geocities.com/~demmert
|
Fri, 01 Sep 2000 03:00:00 GMT |
|
 |
MSMV #4 / 5
|
 Unicode doesn't seem to be supported in VB5 controls
Whoa, hold on there. VB5 *definitely* supports Unicode. In fact, VB5 is nothing *but* Unicode internally. It's the Windows 95 TextBox control that doesn't support Unicode. Just making sure you don't put the blame on the wrong program :-) -- Ben Baird, MVP Microsoft SiteBuilder Network Level 2 Visual Basic Thunder, v. 2.0 http://www.{*filter*}highway.com/~psy/ Common Controls Replacement Project, Official Member http://www.*-*-*.com/
Quote: >Yep, > VB 5 doesn't support Unicode (or at least under Windows95). I ended up >using extended characters and changing the codepages. Also, there is no easy >way to change codepages in runtime. >Dave Emmert
>> I am having a hell of a time trying to get a Unicode character to appear in >> a text box/rich text box/label etc.... I have tried varying controls to see >> if any can support Unicode but I have not had any success. All I want to do >> is show an arrow pointing up in a text box. If you go into character map, >> using the font "Courier New" and select the subset "Arrows", and select the >> up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb >> apps text box, all you get is a question mark, which means the code is >> unknown. The control has been set to the correct font but it doesn't >> work!!!! >> I have tried using the CHRW function but this also gave me the famous >> question mark. The code for the up arrow is 8593. The only way I was able >> to determine this was to use a program which can use Unicode - excel, and >> write a script to go through all codes until I found the code I wanted. >> In then replicated the chrw(8593) function in VB (which works fine in >> Excel), but this was to no avail. >> Does anyone have an solution to my delema? Does VB5 controls support the >> new standard developed by Microsoft for extended characters?
|
Fri, 01 Sep 2000 03:00:00 GMT |
|
 |
Faisal Naveed Asi #5 / 5
|
 Unicode doesn't seem to be supported in VB5 controls
Well... i am working on a urdu program development in VB...after working hard ... it can be done. but not alone in VB5.0, they are right it doesnt support Unicode.. thought i saw an implimentation of it in a Book by Danial AppleMan. u might be able to doit with UniSubClass.ocx .... a shareware OCX i just saw it a few days back on bsoftware.com .... try it it will help.. and also have a look at the book "VB Programmers Guide to the Windows API" by Danial AppleMan. best wishes, Faisal Naveed Asif
Quote: >I am having a hell of a time trying to get a Unicode character to appear in >a text box/rich text box/label etc.... I have tried varying controls to see >if any can support Unicode but I have not had any success. All I want to do >is show an arrow pointing up in a text box. If you go into character map, >using the font "Courier New" and select the subset "Arrows", and select the >up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb >apps text box, all you get is a question mark, which means the code is >unknown. The control has been set to the correct font but it doesn't >work!!!! >I have tried using the CHRW function but this also gave me the famous >question mark. The code for the up arrow is 8593. The only way I was able >to determine this was to use a program which can use Unicode - excel, and >write a script to go through all codes until I found the code I wanted. >In then replicated the chrw(8593) function in VB (which works fine in >Excel), but this was to no avail. >Does anyone have an solution to my delema? Does VB5 controls support the >new standard developed by Microsoft for extended characters? >Regards, >Grant
|
Mon, 04 Sep 2000 03:00:00 GMT |
|
|
|