Hi,

# -*- coding: utf-8 -*-
# ^ Declare that the file should be read by the python parser as utf-8
img = QtGui.QImage()
results = img.load(u'/home/MyHome/Imágenes/Vacación_En_España.png')
#                          ^ create the string as unicode stringe
Should do the trick, and save your py file in utf-8.

For more informations with utf-8 and python, i often suggest
http://www.evanjones.ca/python-utf8.html

Regards,

2011/3/23 hipersayan x <[email protected]>:
> Hi all, I have trouble loading images, and I suspect any other file
> type as well, which contain non-utf8 characters, here's an example:
>

>
> results always returns False.
> How I can fix this problem?
>
> Thanks in advance.
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.pyside.org/listinfo/pyside
>



-- 
Benoît HERVIER, Khertan Software - http://khertan.net/
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to