UuuNyaa / blender_mmd_tools

MMD Tools is a blender addon for importing/exporting Models and Motions of MikuMikuDance.
GNU General Public License v3.0
2.27k stars 109 forks source link

Add UTF-8 support to VMD #161

Open Sakura-Luna opened 5 months ago

Sakura-Luna commented 5 months ago

MMDtools directly discards unsupported characters when exporting VMDs, but it's feasible to keep it and it doesn't affect MMD loading in tests. Due to the size of UTF-8, longer names can be saved using GBK.

fmnijk commented 5 months ago

Maybe there should be some warnings like these.

logging.warning("Bone '%s' cannot be decoded using Shift JIS. Using UTF-8 instead.", name)
logging.warning("Bone '%s' cannot be encoded using Shift JIS. Using UTF-8 instead.", string)