Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.
Afaik you can see those characters by using Terminal font:
VB Code:
List1.Clear
List1.Font.Name = "Terminal"
For lngA = 1 To 255
List1.AddItem ChrW$(lngA)
Next lngA
Thanx both of you for such a quick & informative reply..........
please see attached exe of ASCII table but after comparing it with attached image so many characters its misprinting.I guess its because of font....
I have used same font as mentioned by Merri
VB Code:
List1.Font.Name = "Terminal"
can you resolve this problem.............Thanx in advance....................
Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.
Do you know which character set that is? Knowing it is ASCII is not enough, because ASCII can be so many different things. What you see in the listbox with Terminal font is the OEM character set (I guess that means it is the same as the most common DOS character set).
Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.
Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.
What font are you using? If you set the textbox font to Terminal, it'll show them the way you want. About the only character you can't produce is 9, HTab.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read. Please Help Us To Save Ana
Yes I have done changes as per told by you but no use because from 1 to 127 its printing correct then from 128 to 255 its misprinting characters as shown in attached jpg image.....
I have attached code of my project...........please have a look on that tell me what changes are nned to be done now...............
Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.
Looked at your attached code from post #11 and it showed a bunch of question marks (?) for some of the characters. When I changed "chrw$" to "chr$" (as suggested by post #10), then all of the characters appeared properly.
I tried to find what is the actual character set but I just can't find that one. Until we really know what it is, there is no way we can get the correct characters.
Terminal supports and shows up as OEM/DOS character set, which is not that character set we can see in the image you have provided.
I now know how to get the correct Unicode character codes (UTF-16) for the characters, but I don't (yet) know of any font that could be used to display the results correctly.
Edit!
Here you can find a Terminal font. Just install the font from New850.zip and then Terminal supports CP-850: http://www.uwe-sieber.de/dosfon_e.html
I don't know how exactly the change triggered, though. Also some special letters appear to be missing, I'm not sure why. Probably the font doesn't support them.
It looks as if the original table, as shown in post 1, was generated using a character generator IC (2513?) I don't think that can be duplicated by any Windows font. close, yes, but not exactly - unless by making a character generator chip available to the software (which would require a plug-in board or USB device of some sort).
Or maybe I'm wrong and MS has exactly duplicated the old chip in some code page.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read. Please Help Us To Save Ana
The problem is that there is no font to display all the characters. I can use MultiByteToWideChar to convert from codepage 850 to Unicode and each character gets unique Unicode code and I'm pretty sure they're "correct", but none of the fonts is able to display the exact wanted result for the special characters (ones that are used for style/design and not for information).
In the other hand the font I found is able to show most of the characters pretty close to the wanted end result (and there is no need for character set conversion, just give 0-255), but seems to lack some of the special alphabets; not all of them, but still all too many.
So it is kind of a dead end here: either use the additional font and install it with the installation of the program or then be happy with Windows' ability to convert the character set from codepage 850 to Unicode.
I now know how to get the correct Unicode character codes (UTF-16) for the characters, but I don't (yet) know of any font that could be used to display the results correctly.
Edit!
Here you can find a Terminal font. Just install the font from New850.zip and then Terminal supports CP-850: http://www.uwe-sieber.de/dosfon_e.html
I don't know how exactly the change triggered, though. Also some special letters appear to be missing, I'm not sure why. Probably the font doesn't support them.
Cheersssssssssssss......................
I have downloaded & installed CP-850 font on my machine & now its working fine as I wanted.........
Guys, thanx a lot for ur valuable informations............
Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.
We are facing following problems with MS Sans Serif Font:
For a notepad if we set the font to MS Sans Serif,Bold,8 points and paste some ASCII characters such as ¹³²~ repeatedly some extra empty spaces are added with every paste.
Same case is happening with textbox having Ms Sans Serif,Bold, 8 points font set.
Why is it so?
STEPS
1. OPEN NOTEPAD
2. SET FONT TO MS SANS SERIF,BOLD,8 POINTS.
3. PASTE THE CHARACTER ¹³²~ REPEATEDLY.
4. U WILL SEE BLANK SPACES ADDED AT THE END OF STRING.
Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.