Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Wed Nov 22, 2017 5:50 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon May 03, 2010 5:03 pm 
Offline

Joined: Mon Oct 12, 2009 10:31 pm
Posts: 5
I am trying to display a degree symbol on my G70 via the RS232 interface. The standard ASCII character set (0-127) is displayed correctly, but when I send over '\XA7', the hexadecimal code for the degree symbol, I get something that looks like a "start paragraph" mark on the G70 display. What is the correct code, and is there an extended ascii table for the G70? Or, more to the point, how do I send a degree symbol over the serial port to a LabelV2 object? I'm using Qlarity Foundry v 2.6 and sending ascii serial characters from a C program. ('\n' and other standard C control characters are translated correctly.)


Top
 Profile  
 
PostPosted: Tue May 04, 2010 6:35 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Unfortunately this gets into the enormous topic of character set encodings, which is far more than I can discuss in a single forum post (or even a moderate sized book).

The actual encoding for the degree symbol will depend on the font you have selected into your label, and your serial port settings. If you are using any of the 7 bit serial protocols, you will never be able to send that character over the serial port.

Most fonts that we provided with Qlarity use the normal Unicode encodings, which put the degree symbol at 0xB0 (176), not at 0xA7 (167). If you are using one of the language specific fonts or your own font, then the encoding may vary. I did double check the font helvr08.bdf (the default font) and the degree symbol is encoded at 176. You can easily check this and other symbols by opening the font in any text editor.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Wed May 05, 2010 11:38 am 
Offline

Joined: Mon Oct 12, 2009 10:31 pm
Posts: 5
Jeremy wrote:
Most fonts that we provided with Qlarity use the normal Unicode encodings, which put the degree symbol at 0xB0 (176), not at 0xA7 (167). If you are using one of the language specific fonts or your own font, then the encoding may vary. I did double check the font helvr08.bdf (the default font) and the degree symbol is encoded at 176. You can easily check this and other symbols by opening the font in any text editor.


Hi, Jeremy,

0xB0 works. I'm using the default_ttf font in Qlarity Foundry. I'm not sure what extended ASCII scheme uses 0xA7 as the degree symbol, but charts containing that encoding are numerous.

Thanks!

Glenn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group