Posts: 16
Joined: Oct 2005
Reputation:
0
could anyone tell me the way to convert a string from utf8 to big5? an unknown encoding exception is catched with the following script.
mystring.encode('big5hkscs')
thanks in advance.
Posts: 16
Joined: Oct 2005
Reputation:
0
oh... sorry about my english, as i'm not a native.
let me try to make my question clear.
as i would like to open the playing media file, which is stored in my xbox with filename encoded in big5, i needed to get the filename with the method xbmc.player().getplayingfile(). the method returns the exact characters of the filename before the version 2006-04-17. however, the function returns a converted filename (in utf8) after version 2006-04-17.
i can't open the file with the converted filename, as the filesystem couldn't find it. i'll need the original filename to open it.
i think the behavior of the method is ok for ui, but it brings me another problem on file operation.
Posts: 16
Joined: Oct 2005
Reputation:
0
is that possible to add a method to the player class that returns the playing filename without converting the charset? this function is needed for file operations.