[reportlab-users] Come on, i am so messed up and i need anything from u

sarah el-lawindy reportlab-users@reportlab.com
Sun, 16 Nov 2003 01:12:16 -0800 (PST)


--0-1233591207-1068973936=:26055
Content-Type: text/plain; charset=us-ascii


Sir,
 i forget telling u something , a warning was araised during compilation :

         sys:1: DeprecationWarning: Non-ASCII character '\xca' in file wxApp1.py on line 42, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
      C:\PYTHON23\lib\reportlab\pdfbase\ttfonts.py:309: FutureWarning: x<<y losing bits or changing sign will return a long in Python 2.4 and up

    ####where line 42 is the unicode string  i want to write in the pdf file

so i fetched the given URL (pep-0263), from it , i understood that if we want to use a certain encoding, then the whole src code of the python should use the same encoding.
 i assumed then that we need to change 1st the file encoding  and then we could use the one that is used in arabic (normally, the arabic encoding used with windows is - AR8MSWIN1256)(p.s. the platform used is win98 )
i got 2 questions then:
  1. whether i got that document wrong or right?
  2. if i got it right, how to change the source code file encoding?

thanks u for ur concern,
   sarah ellawindy


  


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1233591207-1068973936=:26055
Content-Type: text/html; charset=us-ascii

<P>Sir,<BR>&nbsp;i forget telling u something , a warning&nbsp;was araised during compilation :</P>
<P><FONT color=#400000 size=1>&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ff007f>&nbsp;&nbsp;&nbsp;&nbsp; sys:1: DeprecationWarning: Non-ASCII character '\xca' in file wxApp1.py on line 42, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\PYTHON23\lib\reportlab\pdfbase\ttfonts.py:309: FutureWarning: x&lt;&lt;y losing bits or changing sign will return a long in Python 2.4 and up</FONT></FONT></P><FONT color=#400000 size=1>
<P><FONT face="times new roman">&nbsp;&nbsp;&nbsp; <FONT color=#000000>####where line 42 is the unicode string&nbsp; i want to write in the pdf file</FONT></FONT></P>
<P></FONT>so i&nbsp;fetched the given URL (pep-0263), from it , i understood that if we&nbsp;want to use&nbsp;a certain encoding, then the whole src code of the python should use the same encoding.<BR>&nbsp;i assumed then that we need to change 1st the file encoding&nbsp; and then we could use the one that is used in arabic (normally, the arabic encoding used with windows is - AR8MSWIN1256)(p.s.&nbsp;the platform used is win98&nbsp;)<BR>i got 2 questions then:<BR>&nbsp; 1. whether i got that document wrong or right?<BR>&nbsp; 2. if i got it right, how to change the source code file encoding?</P>
<P>thanks u for ur concern,<BR>&nbsp;&nbsp; sarah ellawindy<BR></P>
<P>&nbsp; </P><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://antispam.yahoo.com/whatsnewfree">Protect your identity with Yahoo! Mail AddressGuard</a>
--0-1233591207-1068973936=:26055--