Skip to content

Instantly share code, notes, and snippets.

@akkuman
Created November 2, 2021 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akkuman/a70cedf4dfa0c84779a070a6a93b8cfc to your computer and use it in GitHub Desktop.
Save akkuman/a70cedf4dfa0c84779a070a6a93b8cfc to your computer and use it in GitHub Desktop.
[自动生成punycode] #javascript #html
<html>
<body>
<script type="text/javascript">
for(i=0;i<=65535;i++)
{
c = unescape('%u' + i.toString(16));
if (c.match(/\P{C}+/gu))
{
console.log(c);
document.write(c);
document.write('<br/>')
}
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment