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

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 'u

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