OSDN Git Service

implement converter
[meshio/pymeshio.git] / pymeshio / pmx / writer.py
index 4bf9692..e55a046 100644 (file)
@@ -259,7 +259,7 @@ class Writer(common.BinaryWriter):
             self.write_vector3(j.spring_constant_rotation)\r
 \r
 \r
-def write(ios, model, text_encoding=0):\r
+def write(ios, model, text_encoding=1):\r
     """\r
     write model to ios.\r
 \r
@@ -270,6 +270,7 @@ def write(ios, model, text_encoding=0):
             pmx model\r
         text_encoding\r
             text field encoding (0: UTF16, 1:UTF-8).\r
+            0: UTF16 has bug. it write BOM(FFFE).\r
 \r
     >>> import pymeshio.pmx.writer\r
     >>> pymeshio.pmx.writer.write(io.open('out.pmx', 'wb'), pmx)\r