Hi everyone,
it seems like I stumbled into another problem. I want to query user for a filename, then open this file as an image. The trouble starts when the user inputs non-ascii characters in the path to file. I use the following code:
In the test case, if the path contains cyrillic symbols, graphics.Image.open fails with KErrUnderflow error, even though os.path.exists works as intended. Any suggestions on how to avoid this error?Code:import os, appuifw, graphics t=appuifw.query(u'dir','text') print os.path.exists(t) sz=graphics.Image.open(t)

Reply With Quote



