Faced with encoding problem.
I use java-ipfs-api for my project and when I upload a file with Russian (for example) filename I get json response with wrong filename encoding.
Not sure but try setting the filename with file.getName().getBytes("utf-8"). Also, try printing the file in Java before sending it to make sure you're getting the right result.
Not sure but try setting the filename with file.getName().getBytes("utf-8"). Also, try printing the file in Java before sending it to make sure you're getting the right result.
No, it's not helping.
I have encountered a similar problem and have solved it.
I hope this will give you some help.
maksimyugai commentedOct 29, 2018
Hi, guys.
Faced with encoding problem.
I use java-ipfs-api for my project and when I upload a file with Russian (for example) filename I get json response with wrong filename encoding.
There's an issue in Java IPFS repo: ipfs-shipyard/java-ipfs-http-client#76.
If upload wth cli - there's no problem.
Any ideas why it happens?
https://ipfs.io/ipfs/QmQzsXRNVT44TiqhK6sszm5WKb5eKH917jL8Jdhaxqvduu
The text was updated successfully, but these errors were encountered: