vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.81k stars 788 forks source link

'€' is not an allowed string literal character #2799

Open hedgar2017 opened 2 years ago

hedgar2017 commented 2 years ago

Version Information

What's your issue about?

 Vyper M0B0 0.3.2 V-   INVALID tests/vyper/external/strings/unicode_escapes.vy vyper-bin//vyper-0.3.2 error: vyper.exceptions.InvalidLiteral: '€' is not an allowed string literal character
  contract "tests/vyper/external/strings/unicode_escapes.vy", function "threeBytesUTF8", line 14:11 
       13 def threeBytesUTF8() -> String[100]:
  ---> 14     return "aaa\u20ACaaa" # euro
  -------------------^
       15

[24755] Failed to execute script 'vyper_compile' due to unhandled exception!
charles-cooper commented 4 months ago

related: https://github.com/vyperlang/vyper/issues/2338