[cups.bugs] [HIGH] STR #4179: Cups or LPD filters UTF-8 box drawing characters.

Hin-Tak Leung htl10 at users.sourceforge.net
Sat Sep 1 22:08:26 PDT 2012


What platform?

Cups before 2008 should be able to handle utf8 text via texttops (one of the cups backend filters). After 2008, pdf-capable printers do it via texttopdf - that first appears in Ubuntu but spreaded to other linux'es.

--- On Sat, 1/9/12, Jason <jpvoodoo at hotmail.com> wrote:

> From: Jason <jpvoodoo at hotmail.com>
> Subject: [cups.bugs] [HIGH] STR #4179: Cups or LPD filters UTF-8 box drawing characters.
> To: cups-bugs at cups.org
> Date: Saturday, 1 September, 2012, 6:46
> 
> 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
> 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> cups-bugs mailing list
> cups-bugs at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-bugs
> 





More information about the cups mailing list