Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Class Could Not Be found Due to Non-ASCII Character In Name #38

Open
clui-safe opened this issue Mar 5, 2021 · 0 comments
Open

Comments

@clui-safe
Copy link

clui-safe commented Mar 5, 2021

When trying to open a feature class that contains Ä in the name, the API is unable to find the table (error value -2147220655). I have attached a .gdb file that contains a feature class name containing the faulting character. When the character is removed from the name it is able to be opened. The feature class can be opened and displayed properly in ArcGIS Pro and ArcMap. I have also confirmed that the characters are stored as a wstring as UTF-16 bytes.

Code snippet:

std::vector<std::wstring> datasetVector;
fgdbError result = geodb.GetChildDatasets(L"\\", L"Feature Class", datasetVector); 
const std::wstring tableName = datasetVector[0];
const fgdbError result = geodb.OpenTable(tableName, currTable_);  // returns error value, could not find table

Edit: I have done all of the above on Windows 10 Version 10.0.19042 Build 19042 x64
Edit 2: After some more debugging, I have found that this issue only happens when beta UTF8 encoding is turned on.

repro.gdb.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant