Punycode / IDN library for .NET 2.0
The "Simple DNS Plus IDN library", which powers our online IDN conversion tool is now available as a free .NET 2.0 library.
This can be used in any type of .NET 2.0 (or later) project including desktop applications and ASP.NET web-sites.
For desktop applications, you simply add a refrence to the library DLL file, and when distributing your application, install the DLL file to the same directory as your EXE file.
For ASP.NET 2.0 web-sites, simply add the library DLL file to the BIN directory.
Make sure to use UTF-8 encoding on any ASP.NET pages where you display or input domains names with international characters. UTF-8 is the default encoding under ASP.NET, so you should not need to change anything unless you for some reason are using a different encoding.
The library only has two functions; "Encode" (converts from domain name with international characters to punycode) and "Decode" (converts from punycode to domain name with international characters).
Each of the functions take one string parameter and returns a string.
For example:
s = SimpleDNSPlus.IDNLib.Encode("東京.net") [returns "xn--1lqs71d.net"]
s = SimpleDNSPlus.IDNLib.Decode("xn--1lqs71d.net") [returns "東京.net"]
You can download the library (v. 1.0.2) from:
http://www.simpledns.com/outbox/idnlib.dll
For some IDN test data, see http://idntools.net/idnsales.php
NOTE: The functionality of the IDN library is included in our Simple DNS Plus API for .NET/COM
So if you are already using that API in your project, you don't need this library.
LICENSE TERMS:
You are free to use this library, include with other products and services, and distribute it through any media in any way you like.
We would of course appreciate a link back to this page page or http://www.simpledns.com
RELEASE NOTES:
- Version 1.0.2 June 6th 2009: Fixed strong-name issue.
- Version 1.0.1 May 26th 2009: Compiled with newer tools and strong-name signed.
- Version 1.0.0 December 20th 2006: First release.
REFERENCE:
For more information, please see the following knowledge base article:
|