<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>you must know the locale settings of your printer
to print non-ASCII (i. e. ord > 127) characters on your printer (unless you
have a unicode capable printer, which I do now know of one...).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Use the unicode object's encode() method with the
proper encoding for the printer to get the right, encoded string.</FONT></DIV>
<DIV><FONT face=Arial size=2>When you send this to your printer, you'll get the
desired result.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>hth</FONT></DIV>
<DIV><FONT face=Arial size=2>Werner</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Hrvoje Terček" <<A
href="mailto:hrvoje.tercek@caatoosee.hr">hrvoje.tercek@caatoosee.hr</A>>
wrote in message <A
href="news:mailman.1008669442.10799.python-list@python.org">news:mailman.1008669442.10799.python-list@python.org</A>...</DIV>
<DIV>
<DIV>There is the problem:</DIV>
<DIV> </DIV>
<DIV>You have two attachments. Box.gif, box.txt. As you suppose the
image<BR>is capture screen how file should appear and how it should look like
on my<BR>dot-matrix printer, send from python !!! Box.txt is written in
Notepad<BR>because there is only editor which accept my ALT+ commands exactly
as
I<BR>need.<BR><BR>
So task would be: If box.txt appeared exactly as box.gif look<BR>like, try
load box.txt and push to printer all from python. Doesn't work at<BR>my place
:(((<BR></DIV>
<DIV><FONT face=Arial size=2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT
face="Times New Roman">Rephrase the problem
...<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">in
Python21\lib\encode there is the file cp437.py. Obviously used at installation
and locale settings.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">Q:
How to print (standard output or dot matrix printer) e.g. 0x00d3: 0x2559,<SPAN
style="mso-tab-count: 1"> </SPAN># BOX DRAWINGS UP DOUBLE AND RIGHT
SINGLE regardless locale settings???<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT
face="Times New Roman"><SPAN
style="mso-tab-count: 1">
</SPAN>I have Win2000, Python 2.1 and locale setting set to
cp1250...</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT
face="Times New Roman"></FONT></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT
face="Times New Roman">Thanks at front</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3>Hrvoje
Tercek</FONT></SPAN></P></FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>