From: Brian N. <bg...@gm...> - 2012-12-10 15:48:30
|
On Mon, Dec 10, 2012 at 9:16 AM, Brian Neal <bg...@gm...> wrote: > You can also set the environment variable PYTHONIOENCODING if you find > yourself needing to do a lot of redirection or piping. Having said that, I went back to the script that I wrote that was having this problem. I fixed it by using unicode everywhere but then picking an encoding on output, something like: print my_string.encode('utf-8') It does look to me like Markdown is trying to do something like this if you run it as a module. Perhaps Waylan can chime in here. -BN |