GNU libidn
RE: International Domain Names
Looks like 中文.com would be xn--fiq228c.com — which is still unregistered!
You can use GNU libidn to encode your own domain names at this page. There’s also Perl modules for this, but I can’t get them to work.