CityOfZion / neon-js

Javascript libraries that allow the applications to interact with NEO blockchain
https://docs.coz.io/neo3/neon-js/index.html
MIT License
183 stars 165 forks source link

str2hexstring only takes ASCII string #848

Open bettybao1209 opened 2 years ago

bettybao1209 commented 2 years ago

Hi, I'd like to know why here we only supports the ASCII string.

Since in some case we may input the Chinese or some other string that cannot be encoded with ASCII charset. @snowypowers

snowypowers commented 2 years ago

ASCII was the the easiest constraint to work with at the moment of writing. Definitely possible to upgrade to system to support UTF8. PRs welcome.