Command execute error with Unicode output

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Sun Feb 17 23:58:10 GMT 2013


On 17/02/13 22:53, Jose A. Ortega Ruiz wrote:
> On Sun, Feb 17 2013, Mateusz Kowalczyk wrote:
> 
>> print "…"
> 
> You need a '# coding' comment in the beginning of your script if it uses
> unicode (AFAIK, this is a python requirement).  This script:
> 
>   # -*- coding: utf-8 -*-
> 
>   print "…"
> 
> works for me.
> 
> HTH,
> jao
> --
> Dealing with failure is easy: Work hard to improve. Success is also
> easy to handle: You've solved the wrong problem. Work hard to improve.
>   - Alan Perlis, Epigrams in Programing
> 
The combination of that header as well as doing ‘print
myOuput.encode('utf-8')’ as opposed to ‘print my_output’ fixed it.

Thank you! Now to resume my eternal chase for a good looking small font
supporting Eastern Asian languages…

-- 
Mateusz K.



More information about the Xmobar mailing list