PunycodeSwift icon indicating copy to clipboard operation
PunycodeSwift copied to clipboard

punycodeEncoded and idnaEncoded inconsistency

Open abjurato opened this issue 6 years ago • 1 comments

Hi! Thanks a lot for your hard work on this project. I've discovered two interesting behaviours which you probably can be interested in:

  • .punycodeEncoded mistransforms goo.gl into goo.gl-, while .idnaEncoded gives correct goo.gl
  • .idnaEncoded mistransforms ᎻTТРՏ∶⫻⫻նᏞ․fR into xn--p1ad93g9a045z2uc92va61370ahkav069eeeapa while .punycodeEncoded gives s0ad81gqel44eegaq82fczdkzya41780doa7v (later is correct according to https://unicode.org/cldr/utility/idna.jsp)

abjurato avatar Aug 16 '19 15:08 abjurato

I noticed the same when I tried to punycode example.com and received similar result

kyzmitch avatar Apr 26 '22 16:04 kyzmitch