Closed BrainFeeder closed 6 years ago
The eppIDNA() class is only used for encoding and decoding domain names from UTF-8 to IDNA (punycode)
So the example you are using looks correct: $idna->encode() will change the domain name from tëst.com to xn--tst-jma.com
Please note that some registries want punycode when you submit a non-ASCII domain name over EPP, others are quite fine with UTF-8 for the same domain.
The old system we use just encodes everything, so I'll keep doing that I guess :D Thanks for the tip.
I could not find this in the examples. Is it correct to do:
Or should it be used differently?