X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=pymeshio%2Fpmx%2Fwriter.py;h=e55a046057e625fe519de84633f2a1b6e7192d03;hb=274167c4b811b059f7c5fdca47c2113ca185399c;hp=4bf9692827ce222c7c00679dfadd80d77d1da788;hpb=a9b09d0e4cc4cc6a5554e69e7caa389e062a6154;p=meshio%2Fpymeshio.git diff --git a/pymeshio/pmx/writer.py b/pymeshio/pmx/writer.py index 4bf9692..e55a046 100644 --- a/pymeshio/pmx/writer.py +++ b/pymeshio/pmx/writer.py @@ -259,7 +259,7 @@ class Writer(common.BinaryWriter): self.write_vector3(j.spring_constant_rotation) -def write(ios, model, text_encoding=0): +def write(ios, model, text_encoding=1): """ write model to ios. @@ -270,6 +270,7 @@ def write(ios, model, text_encoding=0): pmx model text_encoding text field encoding (0: UTF16, 1:UTF-8). + 0: UTF16 has bug. it write BOM(FFFE). >>> import pymeshio.pmx.writer >>> pymeshio.pmx.writer.write(io.open('out.pmx', 'wb'), pmx)