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

Hin-Tak Leung <[email protected]>
Newsgroups gmane.comp.printing.cups.bugs
Message-ID <[email protected]>
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 <[email protected]> wrote:

> From: Jason <[email protected]>
> Subject: [cups.bugs] [HIGH] STR #4179: Cups or LPD filters UTF-8 box drawing characters.
> To: [email protected]
> 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
> [email protected]
> http://lists.easysw.com/mailman/listinfo/cups-bugs
> 

_______________________________________________
cups-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/cups-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.