On Sep 1, 11:59 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Gandalf schrieb:
>
> > if i want to print utf-8 string i should writre:
>
> > print u"hello word"
>
> No, you don't. You write
>
> print u"hello world".encode("utf-8")
>
> Read this:
>
> http://www.reportlab.com/i18n/python_unicode_tutorial.html
>
> > but what happen if i want to print variable?
>
> Then you do
>
> print variable_containing_unicode_object.encode("utf-8")
>
> Diez

thanks
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to