Created
May 4, 2012 04:50
-
-
Save varrunr/2592105 to your computer and use it in GitHub Desktop.
punicode to unicode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="punycode.js"> </script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var url = 'http://xn--oogle-qmc.com'; | |
result = url.replace(/.*?:\/\//g, ""); | |
alert(punycode.toUnicode(result)); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment