Comments (4)
This is not likely to be resolved any time soon. For now, we'll maintain the use of java.net.IDN
, which implements IDNA2003.
from galimatias.
This URL spec has now switched to referencing UTS 46 instead of RFC 3490 (and has dropped all references to RFC 3490 and replaced them with references to UTS 46). Specifically, it now references UTS 46 for ToASCII and ToUnicode.
I was going to say, "Time to switch away from java.net.IDN and on to com.ibm.icu.text.IDNA?" but as far as I can see, it seems that com.ibm.icu.text.IDNA also still just follows RFC 3490 for ToASCII and ToUnicode (instead of following UTS 46).
Note also the latest proposed update to UTS 46:
http://www.unicode.org/reports/tr46/proposed.html#ToASCII
http://www.unicode.org/reports/tr46/proposed.html#ToUnicode
from galimatias.
@sideshowbarker Thanks for the heads up.
http://icu-project.org/apiref/icu4j/com/ibm/icu/text/IDNA.html#getUTS46Instance(int)
ICU4J supports UTS 46 after all. I'll look into it. It's a pity to drop the "zero dependencies" claim, but it seems the only sane way to do it.
from galimatias.
Good to hear that ICU4J supports UTS 46. Yeah it would be nice to have zero dependencies but I reckon a lot of target apps that'd use galimatias are probably already using ICU4J too. At least I can say that the validator is. So for me it wouldn't be introducing any new dependency
from galimatias.
Related Issues (20)
- Specification sync: Fix IPv6/IPv4 parsing bugs
- Multiple encoding issues must be reviewed
- Look into Guava implementation of IDN
- Should we support the WHATWG URLUtils interface? HOT 1
- IPv6Address.toString() should wrap address with []
- Add API equivalent to URLSearchParams
- Add API for application/x-www-form-urlencoded
- Make percent-encoding to upper-case normalization optional
- Parsing U+10000 or above in username produces unexpected result HOT 3
- Regression in error reporting for bad fragments HOT 2
- For error-reporting parser, if URL contains whitespace char, report more specific “… contains space character.” message
- Implement support for relative URLs for unknown schemes per current spec HOT 1
- ICU4J dependency HOT 3
- Release v0.2.2 HOT 2
- Can't parse Youtube's URLs HOT 2
- Add support for URL.origin()
- Add utility to convert scp-like addresses
- mailto protocol not supported
- url.withParameter(key, value)
- URL.toString() does not produce parseable (by java.URI) URL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galimatias.