[Tutor] Encode problem

Kent Johnson kent37 at tds.net
Mon May 4 21:10:40 CEST 2009


On Mon, May 4, 2009 at 1:32 PM, Pablo P. F. de Faria
<pablofaria at gmail.com> wrote:
> Hi, all.
>
> I've found something that worked for me, but I'm not sure of its
> secureness. The solution is:
>
> reload(sys)
> sys.setdefaultencoding('utf-8')
>
> That's exactly what I wanted to do, but is this good practice?

No. You should understand and fix the underlying problem.

Kent


More information about the Tutor mailing list