Re: __unicode__ method for exception object

2007-07-08 Thread Lawrence Oluyede
Ben Finney [EMAIL PROTECTED] wrote: Your terminal has been detected as using the 'ascii' encoding, so while that's true no attempt to output non-ASCII characters will work. You'll need to change whatever settings are on your terminal emulator so that it is using an encoding (such as 'utf-8')

Re: __unicode__ method for exception object

2007-07-08 Thread Manlio Perillo
Il Sun, 08 Jul 2007 10:02:01 +1000, Ben Finney ha scritto: Manlio Perillo [EMAIL PROTECTED] writes: I have just noticed that exception objects does not handle well Unicode arguments. This error is unrelated to the fact that you created an exception object. No, it is related. e =

__unicode__ method for exception object

2007-07-07 Thread Manlio Perillo
Hi all. I have just noticed that exception objects does not handle well Unicode arguments. e = RuntimeError(u'àèìòù') str(e) Traceback (most recent call last): File stdin, line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)

Re: __unicode__ method for exception object

2007-07-07 Thread Ben Finney
Manlio Perillo [EMAIL PROTECTED] writes: I have just noticed that exception objects does not handle well Unicode arguments. This error is unrelated to the fact that you created an exception object. e = RuntimeError(u'àèìòù') str(e) Traceback (most recent call last): File stdin, line