11-06-2013 05:11 PM
Hello,
I was looking into using some ASCII character codes that reside in the upper 128 character set. LabView apparently only handles the lower 128 character codes appropriately due to the ASCII encoding being 7-bit as opposed to 8-bit.
I can get some of the upper characters to display but it's pretty scattered as to what it can display. Of course the characters I need, I can't get/find (i.e. ≥, ≤, ±). I can find ± which is actually hex F1 but I can get it using hex B1 in LabView
Does anyone know of a table or workaround to get the full ASCII character table?
Peter
11-06-2013 05:36 PM
Hello sdp54321,
ASCII only encompasses 128 character codes- I believe what you're actually referring to is UTF-8, of which ASCII is a subset (the first seven bits, as you referred to in your post). AFAIK "full ASCII" isn't a thing. Try using "unicode" or "UTF-8" in your searches, this will probably give you more relevant results. There is a good amount on using unicode in LabVIEW front panels available here:
NI Developer Community Tutorial: A List of Tips and Tools for using Unicode in LabVIEW
https://decibel.ni.com/content/docs/DOC-10153
That should get you started!
Regards,
11-06-2013 06:27 PM
Actually, ASCII consists of 256 characters. The first 128 are considered standard ASCII. It contains all of the letters, (upper and lowercase), numbers, common symbols, and control codes.
The upper 128 ASCII codes are called extended ASCII and contains a lot of less common symbols and graphics. But the one problem with this portion is that it was never really standardized. Different extended sets contain different characters, or even characters in common may be numbered differently.
11-06-2013 07:11 PM
Yeah.. I guess that's why NI doesn't provide any assistance for characters above hex 7F... All I was looking for was ≥ and ≤.. All that unicode UTF-8 stuff was a bit too much to understand.
I guess I'll just loop through all the possible hex values and see if ≥ ≤ is somewhere in there.
11-06-2013 08:43 PM
What are you really trying to do?
If you change the font, then you get different symbols for different ASCII codes.
Instead of worrying about ASCII codes, change fonts. Look in the Symbols font.
11-06-2013 11:34 PM
Good to know! I hadn't encountered these extended character sets (other than UTF-8) before, go figure. It looks like there are at least a few common (different) proprietary lookup tables, of which the most common is more or less identical to UTF-8. The more you know!
A little searching and it appears that the Windows Latin I lookup is used in LabVIEW (I've not tested it, but it looks to match what you've already found with regards to the plus-minus symbol):
KnowledgeBase 3KEDT7OA: What Lookup Table does LabVIEW Use for Character Codes?
http://digital.ni.com/public.nsf/allkb/6235680C35A22B5986256FE4006DB8E9?OpenDocument