In <[EMAIL PROTECTED]>, Jammer wrote:
> Will a failed decode overwrite the variable?
>
> message = message.decode('iso-8859-1')
> or do I need to do
> msg = message.decode('iso-8859-1')
Why don't you just try?
In [2]: a = u'\u2022'
In [3]: a = a.decode('iso-8859-1')
---------------------------------------------------------------------------
exceptions.UnicodeEncodeError Traceback (most recent call last)
/home/marc/<ipython console>
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2022' in position
0: ordinal not in range(128)
In [4]: a
Out[4]: u'\u2022'
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list