Skip to content
CCPEDIAby Unity Nodes
App Development

Can Daml support multiple languages?

3 posts244 views4 likesLast activity Mar 2022

  1. jaypeedaOP

    Hi team,

    Can Daml supports data written in chinese / malay ?

    Cheers,
    Jean-Paul

  2. Remy 4

    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.

  3. jaypeeda

    Thanks Remy !