mathiasbynens / punycode.js

A robust Punycode converter that fully complies to RFC 3492 and RFC 5891.
https://mths.be/punycode
MIT License
1.59k stars 158 forks source link

case-insensitive issue #105

Open tugrul opened 4 years ago

tugrul commented 4 years ago

Domain names are case-insensitive and library has problem with uppercase.

punnycode.toASCII('ÜBER.COM'); 

xn--BER-ska.COM good

punycode.toUnicode('xn--BER-ska.COM');

Über.COM not good because case format is lost

punycode.toUnicode('XN--BER-SKA.COM');

XN--BER-SKA.COM not good