[
https://issues.apache.org/jira/browse/THRIFT-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roger Meier updated THRIFT-2261:
--------------------------------
Attachment: THRIFT-2261.patch
set utf-8 as encoding within the ant task fixes this: [^THRIFT-2261.patch]
might be possible, to fix by adding a UTF-8 BOM to all Java files.
however, I did not try this...
> java: error: unmappable character for encoding ASCII
> ----------------------------------------------------
>
> Key: THRIFT-2261
> URL: https://issues.apache.org/jira/browse/THRIFT-2261
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library, Test Suite
> Environment: java version "1.7.0_25"
> OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1~deb7u1)
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
> Linux chaos 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 GNU/Linux
> Debian squeeze
> Reporter: Roger Meier
> Attachments: THRIFT-2261.patch
>
>
> i have some issues with the TestTSimpleJSONProtocol:
> {noformat}
> [javac]
> lib/java/test/org/apache/thrift/protocol/TestTSimpleJSONProtocol.java:56:
> error: unmappable character for encoding ASCII
> [javac] assertEquals("{\"my_bonk\":{\"type\":31337,\"message\":\"I am
> a bonk...
> xor!\"},\"my_ooe\":{\"im_true\":1,\"im_false\":0,\"a_bite\":-42,\"integer16\":27000,\"integer32\":16777216,\"integer64\":6000000000,\"double_precision\":3.141592653589793,\"some_characters\":\"JSON
> THIS! \\\"\\u0001\",\"zomg_unicode\":\"??????? ????????????????????
> ??tt?????????????\",\"what_who\":0,\"base64\":\"base64\",\"byte_list\":[1,2,3],\"i16_list\":[1,2,3],\"i64_list\":[1,2,3]}}",
> bufToString());
> [javac]
>
>
>
> ^
> [javac] 100 errors
> {noformat}
> any idea
--
This message was sent by Atlassian JIRA
(v6.1#6144)