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!

PCL and swedish letters 1

Status
Not open for further replies.

SMURF75

Programmer
Aug 28, 2004
87
GB
Hi!

Im kinda stuck, and happy i found this pcl forum. My problem is the swedish letters. I have bytes encoded to utf8 and sends them to a pcl printer. It all works fine except when it comes to the swedish characters 'åäö'. I think i have figureds out that the pcl printer accepts the bytes as cp347 standard, and I've tried to change the font to swedish on the printer by sending Ec(0S and/or Ec(3S before the actual byte stream but it just doesnt work... where am i going wrong?

- - - - - - - - - - - - - - - - - -
Im three apples high, Im blue, and i most certainly like that cold beer that should be every mans right after a hard days work!
 
Using utf8 implies that common Western European characters are encoded in 8 bits, using row 0 of the Basic Multilingual Plane; this is equivalent to ISO 8859/1, although you could use the Windows ANSI 'superset' of this, which provides certain characters within the 'undefined control codes' range (0x80-0x9f) of ISO 8859/1.

In terms of HP symbol sets:

0N (digit 0 letter N) = ISO 8859/1
19U = Windows ANSI

Within ISO8859/1, the characters you mention are encoded as follows:

0xe5 lower-case a ring
0xe4 lower-case a diaeresis
0xf6 lower-case o diaeresis
 
Problem solved. Right thing to do was to send the 19U, and although I happend to stumple upon it before your replay you still deserve a star.. thx

- - - - - - - - - - - - - - - - - -
Im three apples high, Im blue, and i most certainly like that cold beer that should be every mans right after a hard days work!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top