Hi,
I have a wxPython program using wxHtmlWindow control. After getting 'path'
from wxFileDialog's wxGetPath(), I try to use wxLoadPage(path). This works
only when 'path' is an English string other than a mixed English-Chinese
character string. I also found that os.path.isfile(path) works well for
both cases.
example:
os.path.isfile('D:\\\pictures\\'+u'image1.jpg') (Ok!)
self.htmlW_ctrl.LoadPage('D:\\\pictures\\'+u'image1.jpg') (Ok!)
os.path.isfile('D:\\\pictures\\'+u'\u542b.jpg') (Ok!)
self.htmlW_ctrl.LoadPage('D:\\\pictures\\'+u'\u542b.jpg') (not work)
Any reasons. How can I solve this problem?
(I set with multiple languages to my Windows system but set the default
locale of 'Simplified Chinese)
Thanks
Lixin