How to force gradle to take UTF-8 encoding instead of operating system default encoding?

0 votes

I've download the Etherium Client Java Library web3j from git repository. When I try to compile the sources it fails because some of the source files are created with UTF-8 encoding but gradle take my operating system default encoding (Cp1250).

C:\web3j\web3j-master>gradlew install

> Task :crypto:javadoc FAILED
C:\web3j\web3j-master\crypto\src\main\java\org\web3j\crypto\Sign.java:102: error: unmappable character for encoding Cp1250
    //        routine specified in Section 2.3.7, where mlen = Ôî?(log2 p)/8Ôîë or mlen = Ôî?m/8Ôîë.
                                                                 ^
C:\web3j\web3j-master\crypto\src\main\java\org\web3j\crypto\Sign.java:102: error: unmappable character for encoding Cp1250
    //        routine specified in Section 2.3.7, where mlen = Ôî?(log2 p)/8Ôîë or mlen = Ôî?m/8Ôîë.

^
2 errors
Oct 12, 2018 in Blockchain by sabby
• 4,370 points
648 views

1 answer to this question.

0 votes

I've removed the UTF-8 chars from erroneous Java sources (there were only few of them and they were all part of the Java comments). After modification gradle build was successful.

answered Oct 12, 2018 by Perry
• 17,090 points

Related Questions In Blockchain

0 votes
1 answer

How to transact custom token instead of ethers using JSON rpc?

First create your custom token. Then develop ...READ MORE

answered Jul 10, 2018 in Blockchain by digger
• 26,600 points
47 views
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,810 points

edited Mar 26, 2018 by Christine 145 views
0 votes
1 answer

How to check the data integrity logic in proof of work mining?

The proof of work is actually works ...READ MORE

answered May 7, 2018 in Blockchain by Johnathon
• 9,090 points
49 views
0 votes
1 answer

How to create a cryptocurrency based reward system using Ethereum?

I doubt that you'd need a decentralized ...READ MORE

answered May 30, 2018 in Blockchain by Shashank
• 10,350 points
111 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
252 views
0 votes
1 answer
0 votes
1 answer

How do I send back ethers to the sender of the tokens in a smart contract?

Whenever a smart contract receives ether via ...READ MORE

answered May 30, 2018 in Blockchain by Perry
• 17,090 points
495 views