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

Exception 5 in PReader::ReadFromFile() #307

Open
PeterRimkus opened this issue Feb 7, 2023 · 2 comments
Open

Exception 5 in PReader::ReadFromFile() #307

PeterRimkus opened this issue Feb 7, 2023 · 2 comments

Comments

@PeterRimkus
Copy link

Hello,

I am attempting to open the attached .3MF file using lib3mf and I am getting exception code 5 when calling PReader::ReadFromFile().
Exception 5 is "Cannot convert to UTF16".

Is there something wrong with the file? Is it a bug in the SDK?

Thanks in advance,
Pete
Pompe péristaltique (KFS-HA1B10R) v6.zip

@PeterRimkus
Copy link
Author

Oh ... crap ... never mind.
It's the filename that's causing it. There's a French accented character.
If I rename the file to something simple and with English letters instead, all is well.

I was thinking that I would just close this issue (since I know now to check for non-English characters in the file name), but I will keep it open because perhaps it could be addressed in a future version of the SDK?

Pete

@alexanderoster
Copy link
Contributor

Hi Peter,

apologies for the late reply. We are happy to look into it, but my first thought is that the SDK should fully support Unicode filenames, but they need to passed as UTF8 encoded strings. Are you sure that you did not provide it the french accent string in ANSI or similar encoding?

We definitely will work on the error message that is returned in that case.

Apart from this issue, we would love to learn about your use case in 3MF. Is that something you are able to share?

Thank you and best regards,

Alex

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

2 participants