[cups.bugs] [HIGH] STR #4179: Cups or LPD filters UTF-8 box drawing characters.
Jason
jpvoodoo at hotmail.com
Sat Sep 1 11:22:41 PDT 2012
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Trying to use UTF-8 "box drawing" characters in python redirected to lpr
Ex:
ââââââââââââââââââ³ââââââââââ³ââââââââââââ
â Denomination â Qty â Amount â
â£âââââââââââââââââ»ââââââââââ»ââââââââââââ«
â Hundreds 0 $0.00 â
â Fifties 0 $0.00 â
â Twenties 0 $0.00 â
â Tens 0 $0.00 â
â Fives 0 $0.00 â
â Twos 0 $0.00 â
â Singles 0 $0.00 â
â Half Dollars 0 $0.00 â
â Quarters 0 $0.00 â
â Dimes 0 $0.00 â
â Nickels 0 $0.00 â
â Pennies 0 $0.00 â
â£âââââââââââââââââââââââââââââââââââââââ«
â Total Cash: $0.00 â
â Less Bank: $0.00 â
â ââââââââ â
â Ending Balance: $0.00 â
ââââââââââââââââââââââââââââââââââââââââ
ex: lp utf_file.txt
The box characters display correctly on my terminal but don't appear when
printed. this is whether lp is called directly from my program or when a
text file contains characters like these:
"ââââââââââââââââââââââââââââââââââââââââ"
python command to draw it is:
print u'\u2517'+u'\u2501' * 38 + u'\u251B'+"\n"
Normal ascii characters do appear.
Printer is an HP Photosmart 5510 Wireless using HP-setup via jetdirect
port. Cups is installed locally on the PC.
Printer is not attached to the PC and has no USB support. I understand
that CUPs supports UTF-8 by default.
This may well not even be a bug within cups itself. It could even be the
printer or my setup. Any advice would be appreciated, but I understand I'm
probably the only fool who wants to draw unicode boxes to a line printer.
Thank you for your time.
Link: http://www.cups.org/str.php?L4179
Version: 1.5.0
More information about the cups-devel
mailing list