[Baypiggies] Unicode woes using print and redirects...

Shannon -jj Behrens jjinux at gmail.com
Sat Aug 22 02:40:27 CEST 2009

On Fri, Aug 21, 2009 at 5:31 PM, Aahz<aahz at pythoncraft.com> wrote:
> On Fri, Aug 21, 2009, Mitch Patenaude wrote:
>> If there is a unicode specific string it does the right thing as long
>> as stdout hasn't been redirected.
>> I have tired to use the codec.EncodedFile to wrap sys.stdout and try
>> to get it to recode the output, or fool it into thinking that stdout
>> can handle utf8 in either case, but that only causes *both* cases to
>> fail, even though I pass in either errors='ignore' or
>> errors='replace'.  I'm stumped.  Can anyone enlighten me?
> What version of Python?  Check the FAQs on python.org -- this is a
> typical question on c.l.python, though I don't remember the answer
> off-hand.  (Also check Google.)

Does this thread help?



In this life we cannot do great things. We can only do small things
with great love. -- Mother Teresa

More information about the Baypiggies mailing list