实际上在C#里,直接有类库可以做
using System.Globalization;
IdnMapping idn = new IdnMapping();
idn.GetAscii(domain);
可以把中文域名转成punnyCode