Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not displaying symbols correctly

Status
Not open for further replies.

tnguy3n

Programmer
Apr 30, 2008
1
US
When I print a file that contains some special symbols such as trademarks (TM), copyright (C), or reserved (R), it shows as ? instead. Does anyone know a solution for this?

Thanks!
 
The underlying reasons for getting the wrong 'glyph' (character shape) is that the sender and the receiver are not using (or do not support) the same coded character set.

Within the 8-bit ISO8859/1 coded character set (which matches row 0 of the BMP within Unicode), two of the characters you mention are assigned the codes:

0xa9 (decimal 169; Unicode U+00A9) Copyright symbol
0xae (decimal 174; Unicode U+00AE) Registration Mark symbol

The standard Windows ANSI coded character set is a superset of ISO 8859/1; the difference is that it makes use of codes, in the range 0x80-0x9f, which in ISO8859/1 are considered to be 'undefined control codes'.
One of these code positions provides the other symbol:

0x99 (decimal 153; Unicode U+2022) Trade Mark symbol

provided that (both ends) assume use of the Windows ANSI coded character set.

HP LaserJet PCL5 devices refer to coded-character sets via 'Symbol Set' identifiers; the identifier associated with 'Windows ANSI' is 19U.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top