I need help with unicode. After reading a lot on several webpages I still cannot solve my problem.
I have a wx window in python. In one field I set a filename, say "áio" (stupid name, but just to give you the idea).
If I want to create a text file with that name, I would add to the
the ".txt" string... and I get "Γ΅io.txt".
How can I get the proper filename when I save it?
My script is set as
# -*- coding: UTF-8 -*-
And what if I would like to use an image like this "img_áio.jpg" as follows?
Thumb1 = wx.Image("c:\whatever\img_áio.jpg", wx.BITMAP_TYPE_JPEG) self.bitmap_1.SetBitmap(wx.BitmapFromImage(Thumb1))
If I run the script as "python.exe myscript.py" I get an error (Failed to load image from file "whatever\img_Ã¡io.jpg".) but the window has the right image in bitmap_1.
What am I doing wrong? or how can I fix the two issues above?
Thanks a lot
Edited 9 Months Ago by giancan