web3j icon indicating copy to clipboard operation
web3j copied to clipboard

utf8string[] can not process the chinese words correctly

Open YangXianqi opened this issue 3 years ago • 0 comments

When I set the metadata for a erc721 contract, the name and the description are set to the CHINESE words. If the string length is too long, the tx will be reverted. Although the string length is short, for example, 2 chinese words, the corresponding field in the metadata will be shown incorrectly in the scan. How to fix it?

will be reverted one: image

the incorrect one: image

YangXianqi avatar Jan 01 '23 03:01 YangXianqi