UnicodeEncodeError with Korean characters
Blur Studio APIs, Libraries and Tools
Brought to you by:
hendew,
thebeeland
Originally created by: MateuszK...@gmail.com
What steps will reproduce the problem?
When I want get the path of the scene with Korean characters I am getting the error:
code
from Py3dsMax import mxs
mxs.maxFilePath
error:
'UnicodeEncodeError: 'ascii' codec can't encode characters in position 25-29: ordinal not in range(128)'
What version of the product are you using? On what operating system?
Windows 7 64 KR
Python 2.7.x
3ds Max 2012
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: hchiy...@gmail.com
I confront with same problem to handle Japanese.
To fix this problem, change "ascii" to "mbcs" in wrapper.h and wrapper.cpp.
This is not complete solution but it works. one existing problem is
to print string to Command Logger. for example,
print mxs.selection[0]
can't print multi byte character correctly but
print unicode(mxs.selection[0], 'mbcs')
works fine.