std::wstring oErrDesc; std::string oFieldXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" "<esri:Field xmlns:xsi=\"http://www.w3.org/2001/XMLSchema\" xmlns:esri=\"http://www.esri.com/schemas/ArcGIS/10.1\" xsi:type=\"esri:Field\">" "<Name>StopType2</Name>" "<Type>esriFieldTypeSmallInteger</Type>" "<IsNullable>true</IsNullable>" "<Required>false</Required>" "<Editable>true</Editable>" "<Length>2</Length>" "<Precision>0</Precision>" "<Scale>0</Scale>" "<AliasName>StopType2</AliasName>" "<ModelName>StopType2</ModelName>" "</esri:Field>"; if ((hr = table.AddField(oFieldXML))!= S_OK) { FileGDBAPI::ErrorInfo::GetErrorDescription(hr, oErrDesc); }
setlocale(LC_CTYPE, "Japanese");
Hello lshipman,Did you test using XML file I had sent?I tested using File Geodatabase API Beta 3. I could not create data with Japanese name.
When I tried to create data with Japanese name, Geodatabase::CreateTable returned -2147467259.I changed values of CatalogPath and Name in samples/TableSchema/Streets.xml into Japanese. And I ran TableSchema project.I dumped featureClassDef into file with binary mode. The featureClassDef is UTF-8(without BOM). When I tried to use Unicode(UCS-2?), same error code was returned. Table::AddField too.Does these function support muiti byte(non-English) character?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.