Can Daml support multiple languages?

Hi team,

Can Daml supports data written in chinese / malay ?

Cheers,
Jean-Paul

You should be able to use chinese or malay without any issue inside pure data. Indeed Daml values of type Text are encoded using UTF8. Just be aware we use “symbol” as a synonym for “Unicode codepoint” in the documentation of DA.Text

The situation is a bit different concerning Daml identifiers (e.g. name for modules, templates, record fields, …). The surface language supports Unicode syntax, but Daml-LF does not. To circumvention this limitation the Daml compiler mangles Unicode identifiers when generating the dar file. For this reason we strongly discourage using Unicode identifiers, as the resulting identifiers would be very user-unfriendly to handle on the ledger API.

4 Likes

Thanks Remy !