using hh wxPython from command prompt

2002-06-11 Thread janos . juhasz
Hi all, I use vim6.1 to edit python code on PC, and it is really a nice. Have anyone a good vimrc with the features of searching keyword help in *.chm files? So the main question is how i can integrate th wxPython.chm with vim, how can i call hh to open the helpfile at the keyword i am staying on

Re: Unicode

2002-06-11 Thread Bob Kline
On Tue, 11 Jun 2002, Martin Katz wrote: > Actually, you should use > > print list[1].encode('latin1', 'ignore') > > This will eliminate the exception when a character has no latin1 > equivalent. This is simpler than the other alternatives. But it's only acceptable if (a) you know it won't lo

RE: Unicode

2002-06-11 Thread Peter . Frey
Title: RE: Unicode Hi, the problem was solved by using print list[1].encode('iso8859_2') I still wonder why this works, the book Python Essential Reference (Second Edition) mentions to use 'iso-8859-1' for latin 1 (western europe) and equivalently it should be 'iso-8859-2' for la

Re: Unicode

2002-06-11 Thread Martin Katz
Actually, you should use print list[1].encode('latin1', 'ignore') This will eliminate the exception when a character has no latin1 equivalent. This is simpler than the other alternatives. Martin Katz [EMAIL PROTECTED] wrote: > Hi, > > we had a similar problem with Outlook > try the follo

RE: Unicode

2002-06-11 Thread Michael Robin
If the idea is just to get "print" to work safely for quick debug printing (I had this problem) I believe you can just use repr() or the backquote. >>> print `list[1]` should print w/o error. mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL

RE: Unicode

2002-06-11 Thread Bob Kline
On Tue, 11 Jun 2002 [EMAIL PROTECTED] wrote: > Hi, > > we had a similar problem with Outlook > try the following: > > print list[1].encode('latin1') Or, a bit more robust (this approach avoids problems with characters which won't fit in Latin1): #

RE: Unicode

2002-06-11 Thread Peter . Frey
Title: RE: Unicode Hi, we had a similar problem with Outlook try the following: print list[1].encode('latin1') > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 2:23 PM > To: [EMAIL PROTECTED] > Subject: Unicode > > > Hi A

Unicode

2002-06-11 Thread janos . juhasz
Hi All, I am new in python. I found it very usefull, but : this string came from an ADO recordset and i cant do anything with it. >>> list[1] u'SCALA 5.1 Logisztika belf\xf6ld' >>> print list[1] Traceback (most recent call last): File "", line 1, in ? UnicodeError: ASCII encoding error: ordina