punycode

Can anyone recommend a good, free javascript for punycode to Unicode conversion?

I found this the other day: http://0xcc.net/jsescape/ but the punycode conversion doesn't work if there's a dash in the middle. For instance - I need to convert the punycode NIATO-OTABD to nñiñatoñ. Any help much appreciated ...

Convert non-ascii domain to SMTP compatible

When customers enter email addresses with non-ascii chars like äüö our SMTP rejects to process them. So I think might be there is a solution to handle those domains myself and convert them to punyocode. Is there a simple way of doing so using c#? Would this work anyway? ...

java.net.IDN function for jdk1.4

Is there any external library out there that has the same function with java.net.IDN (which only available in jdk6) for jdk1.4? ...

Efficient way to ASCII encode UTF-8

I'm looking for a simple and efficient way to store UTF-8 strings in ASCII-7. With efficient I mean the following: all ASCII alphanumeric chars in the input should stay the same ASCII alphanumeric chars in the output the resulting string should be as short as possible the operation needs to be reversable without any data loss the resul...

Problem in converting string to puny code (in PHP, using phlyLabs's punycode string converter)

hi, i'm using the code from here: http://phlymail.com/en/downloads/idna/download/ and built a function like this (from the example): function convert_to_punycode($inputstring) { $IDN = new idna_convert(); // The input string, if input is not UTF-8 or UCS-4, it must be converted before $inputstringutf8 = utf8_encode($inputst...

How can i code and decode urls from IDN in php?

Hi, im doing a site to check, register, etc of domains, i have to make it IDN compliant. Right now i have something like this: echo $domain; $domain = idn_to_ascii($domain); echo $domain; $domain = idn_to_utf8($domain); echo $domain; and im getting this: testing123ásd123 xn--testing123sd123-wjb testing123ĂĄsd123 as you can se...

How to convert domain names with greek characters to an ascii URL?

For example: When typing παιχνιδια.com into Firefox, it is automatically converted to xn--kxadblxczv9d.com Please suggest a tool for making such a conversion. One of the easiest is this. Converts and checks for availability at the same time. ...