Created
January 22, 2016 12:03
-
-
Save danhper/3a88e0ee3d96463623fd to your computer and use it in GitHub Desktop.
Generates UTF-8 number with circle in it.
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
function makeNumber(n) { | |
var one = '①'; | |
var encoded = encodeURIComponent(one); | |
var modified = encoded.substring(0, encoded.length - 1) + (n - 1).toString(); | |
return decodeURIComponent(modified); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment