Skip to content

Unicode support in Scilla strings #1169

@anton-trunov

Description

@anton-trunov

Scilla does not support Unicode at the moment.

This contract

scilla_version 0

contract HelloWorld ()

transition HelloWorld ()
  e = {_eventname: "你好世界"};
  event e
end

does not pass the checker:

$ scilla-checker -gaslimit 8000 -libdir "$(opam var scilla:lib)/stdlib" helloWorld.scilla

helloWorld.scilla:6:33: error: Syntax error: Invalid String literal 你好世界

Gas remaining: 8000

It would be nice to either document this explicitly in the Scilla docs or add Unicode support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions