How do I get unicode support in python?

Eric Mesa ericsbinaryworld at
Sat Feb 9 15:45:44 UTC 2008

Message: 12
> Date: Fri, 8 Feb 2008 16:06:50 +0100
> From: "Heiko Wundram (Beenic)" <wundram at>
> Subject: Re: How do I get unicode support in python?
> 0: ordinal not in range(128)
> >>> print u"\xfa".encode("latin-1")
> ú
> >>>
> HTH!
> --
> Heiko Wundram
> Product & Application Development
> ------------------------------
The .encode solution worked perfectly for me!  I am using it for the page
you get when you fill out the year here:
(right now you have to switch to utf-8, I haven't set it to do that
automatically yet)

Thanks again!
Eric Mesa
"Do not worry about those things that are outside of your circle of
influence.  For since they are outside of your power to control them it is
simply a waste of time and energy to dwell on them.  Instead, turn your
attention to those things that you can control and grow your influence in
those areas and you will see the effects begin to trickle out to those items
that were previously out of your power to influence." – Eric Mesa inspired
by Covey's 7 Habits of Highly Effective People

More information about the freebsd-questions mailing list