From 2682422950f70c6b8e971c43dc4bc77f9d8a8ab4 Mon Sep 17 00:00:00 2001 From: Arseny Tolmachev Date: Thu, 10 Sep 2015 17:17:25 +0900 Subject: [PATCH] make generated toString use toUnicodeString --- .../com/trueaccord/scalapb/compiler/ProtobufGenerator.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-plugin/src/main/scala/com/trueaccord/scalapb/compiler/ProtobufGenerator.scala b/compiler-plugin/src/main/scala/com/trueaccord/scalapb/compiler/ProtobufGenerator.scala index ed712df09..d50c288af 100644 --- a/compiler-plugin/src/main/scala/com/trueaccord/scalapb/compiler/ProtobufGenerator.scala +++ b/compiler-plugin/src/main/scala/com/trueaccord/scalapb/compiler/ProtobufGenerator.scala @@ -860,7 +860,7 @@ class ProtobufGenerator(val params: GeneratorParams) extends DescriptorPimps { } .call(generateGetField(message)) .when(message.javaConversions)( - _.add(s"override def toString: String = com.google.protobuf.TextFormat.printToString(${message.scalaTypeName}.toJavaProto(this))")) + _.add(s"override def toString: String = com.google.protobuf.TextFormat.printToUnicodeString(${message.scalaTypeName}.toJavaProto(this))")) .add(s"def companion = ${message.scalaTypeName}") .outdent .outdent