[PyQt] Accented characters
alteo_gange
romanocaldoni at free.fr
Thu May 1 13:43:42 BST 2008
Le jeudi 01 mai 2008, alteo_gange a écrit :
> Hi,
>
> could you complete the next bit of code please?
>
> 1) File selection (the file's name is accented: ex. animé.txt)
> file = QFileDialog.getOpenFileName(None, "Open"),".","All files (*.*))
> 2) Print file's name in a terminal
> ???
>
> It seems easy... too easy...
print a.toUtf8()
-> /home/login/animé.txt
It's ok.
It was tricky.
--
alteo_gange
More information about the PyQt
mailing list