-
Notifications
You must be signed in to change notification settings - Fork 222
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
Can't load glTF URIs with unicode characters #973
Comments
Your explanation makes sense to me @lilleyse. I wonder if there's a better library for our purposes than uriparser. I couldn't find one when I originally selected it for cesium-native, but that was over four years ago now. |
I've investigated a few alternatives to uriparser that each come with their own drawbacks:
Also, perhaps the biggest issue, neither alternative to uriparser has equivalents to Instead of an alternative parser, I'm going to try to see if I can work around the lack of unicode support in uriparser. While |
Thanks for investigating @azrogers. ada looks really promising, and may be worth the switch even if it causes some pain. There is a lot of dodgy stuff in our Uri.cpp due to limitations in uriparser or just general incompleteness. For example, take a look at the TODO and terrible implementation of The lack of the filename conversion functions would indeed be a hassle, but I suspect they're actually quite simple when based on a URL library with a less old-school interface. Considering how fundamental URLs are to what we do, I think this is well worth another day or three of effort. Do you think making the switch to ada is possible in that kind of time frame? |
It should be, as long as we're ok with changing around some of the tests where necessary. I can put some more time into it today once I finish catching up on reviews. |
According to the glTF URIs section:
But when I try to use
GltfReader
to load a glTF with a URI to 🐶.bin I get a runtime error:🐶.gltf.zip
This may be a limitation in
uriparser
which only parses RFC 3986 URIs which are ASCII-based. It does not handle RFC 3987 IRIs which allow Unicode characters verbatim.The text was updated successfully, but these errors were encountered: