From: Dave P. <dav...@gm...> - 2012-12-10 15:50:15
|
On 10 December 2012 15:16, Brian Neal <bg...@gm...> wrote: > On Mon, Dec 10, 2012 at 8:58 AM, Dave Pawson <dav...@gm...> wrote: >> >> I'm on Fedora, which uses Python heavily for scripts, so I'm reluctant >> to install 3 ahead of Fedora. >> My solution works which is enough for me. > > > You can also set the environment variable PYTHONIOENCODING if you find > yourself needing to do a lot of redirection or piping. > Useful to know... http://docs.python.org/2/using/cmdline.html?highlight=pythonioencoding#PYTHONIOENCODING presumable export PYTHONIOENCODING=utf-8 I think that is worth adding to the user docs? The values taken by the -e option are missing too. regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk |