I read some questions on this, they use rawurlencode or percent encoding to encode utf-8 characters but I find some different examples like this: xn--pbt1by64f.lofter.com and http://xn--wgv71a.com/, this will also be converted to utf-8 string in browser address bar(e.g.温家宝.lofter.com,日本.com). This is obviously not percent encoding or simply urlencode result, what’s this encoding method?
I read some questions on this, they use rawurlencode or percent encoding to encode
Share
This is called Internationalized domain name.
And check php’s IDN Functions