Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 54:

2016-04-24 Thread Peter Otten
arthur sherman wrote: > m using a python web applic (adagios, a nagios configuration tool). > when attempting a certain operation on the client side browser i get the > above error. the client side is ubunti 14.04. servers side is debian 8. > browser is ff or chrome. both show: > echo $LANG > en_U

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

2013-11-27 Thread Terry Reedy
On 11/27/2013 7:37 AM, Tim Golden wrote: On 27/11/2013 08:31, Hoàng Tuấn Việt wrote: I cannot see your reply in python-list until I search this question on Internet again. (cc-ing the OP because of the nature of the problem) Viet, That's because you're not subscribed to the list. The way it

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

2013-11-27 Thread Tim Golden
On 27/11/2013 08:31, Hoàng Tuấn Việt wrote: > I cannot see your reply in python-list until I search this question > on Internet again. (cc-ing the OP because of the nature of the problem) Viet, That's because you're not subscribed to the list. The way it works is that you subscribe to the list a

RE: UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

2013-11-27 Thread Hoàng Tuấn Việt
Hi Fabio, I cannot see your reply in python-list until I search this question on Internet again. I try (username.encode('utf-8') + '\r') and the problem is fixed. Thank you very much. Viet >You should be able to reproduce the same behavior on PyDev if in your run >configuratio

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in

2008-10-21 Thread Gabriel Genellina
En Thu, 16 Oct 2008 00:16:13 -0300, MOS37F MOS37F <[EMAIL PROTECTED]> escribió: import shelve from ShelfFile import ABC from zipfile import ZipFile, ZIP_DEFLATED ShelfFilePath = 'E:\DIR\DIR\DIR\ShelfFile' If you want some kind of answer: - shorten the code to the minimum fragment that stil

Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2008-06-17 Thread Gilles Ganault
On Tue, 17 Jun 2008 09:23:28 +0200, Peter Otten <[EMAIL PROTECTED]> wrote: > Assuming that encoding is UTF-8 and that apsw can cope > with unicode, try to convert your data to unicode before > feeding it to the database api: > >> sql = "INSERT INTO mytable (col1,col2) VALUES (?,?)" > > rows = ([co

Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2008-06-17 Thread Peter Otten
Gilles Ganault wrote: > It seems like I have Unicode data in a CSV file but Python is using > a different code page, so isn't happy when I'm trying to read and put > this data into an SQLite database with APSW: My guess is that you have non-ascii characters in a bytestring. > What should I do s