Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Can Daml support multiple languages?Forum ↗

Can Daml support multiple languages?

App Development3 posts210 views4 likesLast activity Mar 2022
JA
jaypeedaOP
Mar 2022

Hi team,

Can Daml supports data written in chinese / malay ?

Cheers,
Jean-Paul

RE
Remy
Mar 2022

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.

JA
jaypeeda
Mar 2022

Thanks Remy !

← Back to Discussions