Can't deal with Chinese character file path

Issue #7 wontfix
Anonymous created an issue

RT. The file path includes Chinese character, Display error in my logs. The error message as:

[2012-10-08 14:01:43,821: ERROR/MainProcess] Task app.tasks.compress_file[884932db-5755-4575-bfcd-2caf4f793e4f] raised exception: UnicodeEncodeError('ascii', u'/<FILE PATH>/images/\u5f52\', 54, 56, 'ordinal not in range(128)') Traceback (most recent call last): File "/<FILE PATH>/env/lib/python2.6/site-packages/celery/task/", line 224, in trace_task R = retval = fun(*args, kwargs) File "/<FILE PATH>/", line 15, in compress_file p = Path(compress.content.path) File "/<FILE PATH>/env/lib/python2.6/site-packages/unipath/", line 41, in new return, newpath)

Comments (1)

  1. Mike Orr repo owner

    I don't have enough knowledge of Chinese charsets to address this. Development has moved to . Also, I'm considering freezing Unipath in favor of pathlib (PEP 428). If you think this is still a significant issue, open a bug report in the Bitbucket repository, and explain how somebody with no experience in Asian languages can troubleshoot this.

  2. Log in to comment