Skip to content

Instantly share code, notes, and snippets.

@Fi5t
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save Fi5t/aa4a3e203a8f5fb30148 to your computer and use it in GitHub Desktop.

Select an option

Save Fi5t/aa4a3e203a8f5fb30148 to your computer and use it in GitHub Desktop.
def unicodeToString(unicodeString: String): String = {
val unicodeChars = unicodeString.split("""\\u""").filter(!_.isEmpty)
unicodeChars.map(Integer.parseInt(_, 16).toChar).mkString
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment