[Labs-l] Unicode prints fails in jsub

Jan Lebert jan.lebert at online.de
Mon May 19 21:40:06 UTC 2014


Your scripts should start with

!/usr/bin/python
# -*- coding: utf-8 -*-

see PEP 0263 [1]. You can also ssh to exec hosts (e.g. tools-exec-08) 
directly to test if it is something server specific or related to jsub.


-jan

[1] http://legacy.python.org/dev/peps/pep-0263/


On 05/19/2014 11:25 PM, Emilio J. Rodríguez-Posada wrote:
> Hello;
>
> When I test my Python script in tools-dev, prints are OK. But when I
> launch the script with jsub, I receive errors of Unicode:
>
> UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in
> position 6: ordinal not in range(128)
>
> Why does it change among boxes?
>
> Regards
>
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
>




More information about the Labs-l mailing list