chaokunyang commented on code in PR #1620:
URL: https://github.com/apache/incubator-fury/pull/1620#discussion_r1596377048


##########
java/fury-core/src/main/java/org/apache/fury/meta/MetaStringEncoder.java:
##########
@@ -70,6 +70,9 @@ public MetaString encode(String input, Encoding[] encodings) {
   public MetaString encode(String input, Encoding encoding) {
     Preconditions.checkArgument(
         input.length() < Short.MAX_VALUE, "Long meta string than 32767 is not 
allowed");
+    if (encoding != Encoding.UTF_8 && !isASCII(input)) {

Review Comment:
   Just found that we can use 
`org.apache.fury.serializer.StringSerializer#isLatin` in java instead. 
`isLatin` is OK too here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to