<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Does FBX exporter support utf-8 encoding when exporting to .obj? in FBX Forum</title>
    <link>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7853305#M1395</link>
    <description>&lt;P&gt;I do not know the official OBJ spec (if it exists), but OBJ is a really old format. There is a good chance FBX replaces every non-ASCII letter with an underscore for compatibility reasons towards other software.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 15:53:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-14T15:53:06Z</dc:date>
    <item>
      <title>Does FBX exporter support utf-8 encoding when exporting to .obj?</title>
      <link>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7846397#M1394</link>
      <description>&lt;P&gt;Using the same piece of code to export the same piece of geometry as both .fbx and .obj, I encountered a problem where the geometry name (UTF-8 encoded, partially in Russian: "Basicстена") does not get exported properly and all non-ASCII characters become '_'. All documentation points to FBX supporting UTF-8 encoded strings (&lt;A title="FBX UTF-8 Documentation" href="http://download.autodesk.com/us/fbx/20112/FBX_SDK_HELP/index.html?url=WS73099cc142f4875516078ea312754f1d2d4-7c14.htm,topicNumber=d0e8266" target="_blank"&gt;link&lt;/A&gt;). What I'm uncertain about is whether this applies to exporting a .obj file. Has anyone encountered the same problem and am I missing something here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very modified code snippet below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    #include &amp;lt;string&amp;gt;
    #include &amp;lt;sstream&amp;gt;
    #include &amp;lt;codecvt&amp;gt;
    #include &amp;lt;fbxsdk.h&amp;gt;

    void main()
    {
        std::string zFilename = "test.obj";
    	std::wstring wzNodeName = L"Basicстена";
	std::stringstream oss;
        std::wstring_convert&amp;lt;std::codecvt_utf8_utf16&amp;lt;wchar_t&amp;gt;, wchar_t&amp;gt; convert;
        oss &amp;lt;&amp;lt; convert.to_bytes( wzNodeName );
	std::string zNodeName = oss.str();

        fbxsdk::FbxManager fbxManager = fbxsdk::FbxManager::Create();
        if ( !fbxManager ) return;

	fbxsdk::FbxIOSettings* pIOSettings = fbxsdk::FbxIOSettings::Create( fbxManager, IOSROOT );
	if ( !pIOSettings ) return;
	fbxManager-&amp;gt;SetIOSettings( pIOSettings );

	fbxsdk::FbxExporter* pExporterTest = fbxsdk::FbxExporter::Create( fbxManager, "" );

	pExporterTest-&amp;gt;SetFileExportVersion( FBX_2016_00_COMPATIBLE );
	
        // Create dummy scene with geometry to export
	fbxsdk::FbxScene* pSceneTest = fbxsdk::FbxScene::Create( fbxManager, "testscene" );
	fbxsdk::FbxNode * pNodeTest = fbxsdk::FbxNode::Create( pSceneTest, zNodeName.c_str() );
	fbxsdk::FbxMesh* pMeshTest = fbxsdk::FbxMesh::Create( pSceneTest, "testmesh" );
	pNodeTest-&amp;gt;SetNodeAttribute( pMeshTest );
	fbxsdk::FbxNode* pRootNodeTest = pSceneTest-&amp;gt;GetRootNode();
	pRootNodeTest-&amp;gt;AddChild( pNodeTest );

        // Initialize to export as .fbx file:
	pExporterTest-&amp;gt;Initialize( zFilename.c_str(), 1, fbxManager-&amp;gt;GetIOSettings() );
	pExporterTest-&amp;gt;Export( pSceneTest );

        // Initialize to export based on detected extension (.obj file):
	pExporterTest-&amp;gt;Initialize( zFilename.c_str(), -1, fbxManager-&amp;gt;GetIOSettings() );
	pExporterTest-&amp;gt;Export( pSceneTest );

        // Clean-up
    	pSceneTest-&amp;gt;Destroy( true );
	pExporterTest-&amp;gt;Destroy( true );
        fbxManager-&amp;gt;Destroy();
        return;
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the .fbx file I see this near the bottom of the file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    Objects:  {
    	Geometry: 2212458999648, "Geometry::testmesh", "Mesh" {
    	}
    	Model: 2212447434112, "Model::Basicстена", "Mesh" {
    		Version: 232
    		Properties70:  {
    			P: "ScalingMax", "Vector3D", "Vector", "",0,0,0
    			P: "DefaultAttributeIndex", "int", "Integer", "",0
    		}
    		Shading: Y
    		Culling: "CullingOff"
    	}
    }
    
    ; Object connections&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the .obj file I see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# 
# Wavefront OBJ file
# Created with Kaydara FBX
# 
g Basic__________&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 15:30:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7846397#M1394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-12T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Does FBX exporter support utf-8 encoding when exporting to .obj?</title>
      <link>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7853305#M1395</link>
      <description>&lt;P&gt;I do not know the official OBJ spec (if it exists), but OBJ is a really old format. There is a good chance FBX replaces every non-ASCII letter with an underscore for compatibility reasons towards other software.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:53:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7853305#M1395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T15:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Does FBX exporter support utf-8 encoding when exporting to .obj?</title>
      <link>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7854150#M1396</link>
      <description>&lt;P&gt;The OBJ specification does not provide a mechanism to identify the encoding of the strings (Wavefront OBJ specification: &lt;A href="http://www.martinreddy.net/gfx/3d/OBJ.spec" target="_blank"&gt;http://www.martinreddy.net/gfx/3d/OBJ.spec&lt;/A&gt;) therefore, as Loebl wrote, for compatibility reasons, all non ascii characters are replaced with the underscore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the FBX was just writing the string as UTF8, any program that would read the OBJ file would not know that the received strings need to be interpreted as UTF8 so it would be impossible to figure out if the word &lt;STRONG&gt;A_Ã©Ã&amp;nbsp;Ã®Ã§&lt;/STRONG&gt; is the actual string defined with these characters or if, instead, would represent the word: &lt;STRONG&gt;A_éàîç&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 20:22:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7854150#M1396</guid>
      <dc:creator>regalir</dc:creator>
      <dc:date>2018-03-14T20:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does FBX exporter support utf-8 encoding when exporting to .obj?</title>
      <link>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7856402#M1397</link>
      <description>&lt;P&gt;Thank you for your responses! That clears things up for me. Will this be&amp;nbsp;something that is going to or needs to be changed?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:46:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fbx-forum/does-fbx-exporter-support-utf-8-encoding-when-exporting-to-obj/m-p/7856402#M1397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-15T14:46:31Z</dc:date>
    </item>
  </channel>
</rss>

