This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract LanguagesUTF8 { | |
// these work ok: | |
bytes32 asciiStr = "only ascii chars"; | |
bytes32 zhongWenStr = "北京"; | |
bytes32 arabicStr = "العربية" ; | |
bytes32 unicodeStr = "\u5317\u4eac"; | |
bytes32 khmerStr = "ភ្នំពេញ"; | |
// this fails with: 'is not implicitly convertible to expected type bytes32.' |