BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-16-2007, 09:47 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2007
Model: 8700
PIN: N/A
Carrier: O2
Posts: 24
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Write a euro symbol to output stream

Please Login to Remove!

I'm sending some strict CPCL commands to a label printer via Bluetooth serial port to produce a printed 'receipt'.

Every line I send to the device I have to convert to bytes and then use _dout.write(bytes[], ind begin, ind end) as otherwise 2 byte characters get written to the output stream and the printer doesn't understand them - pretty much every character is prefixed with the ASCII 00 character/byte...

I now have a problem where, when attempting to write a euro symbol tot he output stream I'm getting simply a '?' in place of the euro symbol. I'm using string.getBytes() to do the conversion from string to byte array.

I have taken a raw dump of the input to the printer and see that the character that gets written is the ascii char 3F which is the '?' I'm seeing in the printer so the problem must occur before the data is sent to the output stream.

Any ideas?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing (D9-5)
$250.0
Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing  (D9-5) pictureCommodore Amiga Power Supply PA-4201-5A A2000 A2500 A3000 A4000 (D4)
$65.0
Commodore Amiga Power Supply PA-4201-5A     A2000 A2500 A3000 A4000       (D4) pictureCommodore Amiga Supraram 2000 4mb Expansion A2000 A2500 A3000 A4000 (D9-3)
$45.0
Commodore Amiga Supraram 2000 4mb Expansion A2000 A2500 A3000 A4000    (D9-3) pictureCommodore Amiga A2091 Hard Drive and Controller Card Quantum ProDrive LPS (D9-2)
$131.0
Commodore Amiga A2091 Hard Drive and Controller Card Quantum ProDrive LPS (D9-2) pictureCommodore Amiga A2000 A2500/50 Accelerator Card 312291 BR98YVA2630 (D9-1)
$250.0
Commodore Amiga A2000  A2500/50 Accelerator Card 312291  BR98YVA2630  (D9-1) picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.