diff options
-rw-r--r-- | src/library/scala/util/parsing/json/Lexer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/util/parsing/json/Lexer.scala b/src/library/scala/util/parsing/json/Lexer.scala index 0eedd8389b..ba276cee29 100644 --- a/src/library/scala/util/parsing/json/Lexer.scala +++ b/src/library/scala/util/parsing/json/Lexer.scala @@ -83,7 +83,7 @@ class Lexer extends StdLexical with ImplicitConversions { private def unicodeBlock = hexDigit ~ hexDigit ~ hexDigit ~ hexDigit ^^ { case a ~ b ~ c ~ d => - new String(io.UTF8Codec.encode(Integer.parseInt(List(a, b, c, d) mkString "", 16))) + new String(io.UTF8Codec.encode(Integer.parseInt(List(a, b, c, d) mkString "", 16)), "UTF-8") } //private def lift[T](f: String => T)(xs: List[Any]): T = f(xs mkString "") |