Skip to content

Instantly share code, notes, and snippets.

@NV
Created April 23, 2010 23:38
Show Gist options
  • Select an option

  • Save NV/377310 to your computer and use it in GitHub Desktop.

Select an option

Save NV/377310 to your computer and use it in GitHub Desktop.
Convert unicode sequence to actual character. Like "U+005A" to "Z".
function unicodeToActualCharacter(code) {
// Convert unicode sequence to actual character
//
// unicodeToActualCharacter('U+005A') --> "Z"
return eval('"'+ code.replace("U+", "\\u") +'"');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment