mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Error when loading image record with Chinese names

Open LiamZhuuu opened this issue 10 years ago • 1 comments

I always came across encoding error when loading image record with Chinese names. But I solved this by changing line 91 in base.py from

return ctypes.c_char_p(string.encode('utf-8'))

to

return ctypes.c_char_p(string)

LiamZhuuu avatar Feb 11 '16 05:02 LiamZhuuu

Usually you don't want any non ascii character in your path specially if you are using windows. Dealing with this across platforms and python version is a nightmare so I don't think we are going to support it.

piiswrong avatar Feb 11 '16 07:02 piiswrong