API.in.th Thai Programmable Web

IDN Domains Converter

Function to convert domain name from Unicode  charsets to IDNA ASCII

URI

http://api.in.th/idn/{decode|redirect}/PARAMETER

Operation

  • decode - Return ASCII as HTTP Response body
  • redirect - Automatic return a Redirect HTTP Response (Code:301)

Parameter

Unicode of domainname

Return Values

Up on operation

Examples

http://api.in.th/idn/decode/เอพีไอ.th
//xn--v3c3ab5a4c1a.th

http://api.in.th/idn/redirect/เอพีไอ.th

Case Study

Google Button for Google Toolsbar [English version] [Thai version], Copy this file to C:\Documents and Settings\username\Local Settings\Application Data\Google\Custom Buttons\ directory and enjoy.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.