Le 17/09/11 05:28, Vincent Vande Vyvre a écrit :
Le 17/09/11 01:28, Ian Kelly a écrit :The problem was in the config of Archlinux himself.Ok, my example is in a terminal but the problem is the same in a graphical application wich use PyQtOn Fri, Sep 16, 2011 at 7:52 AM, Vincent Vande Vyvre <vincent.vandevy...@swing.be> wrote:[vincent@myhost ~]$ python string_2.pyPython version: 3.2.2 Linux-3.0-ARCH-x86_64-Pentium-R-_Dual-Core_CPU_T4500_@_2.30GHz-with-glibc2.2.5 Path: /home/vincent/image.jpg, Type: <class 'str'> File exists Traceback (most recent call last): File "string_2.py", line 13, in <module> print('\nPath: {0}, Type: {1}'.format(path, type(path))) UnicodeEncodeError: 'ascii' codec can't encode characters in position 21-25: ordinal not in range(128)This looks like a terminal encoding issue on the second PC. Your terminal is probably not using a unicode encoding, and so it is unable to print a unicode string. Cheers, Ian Solved in /etc/rc.conf Thanks |
-- http://mail.python.org/mailman/listinfo/python-list