Questions tagged [string]
The string tag has no usage guidance.
5
questions
0
votes
1answer
21 views
How can I do string interpolation on smartpy?
I'm trying to provide better error messages. I've tried several things already that don't work such as regular python fstrings, regular string concatenation. I'm tried to using the sp.string function ...
2
votes
1answer
24 views
How do you read and store a UTF-8 value in Michelson
The Michelson document from the Tezos Developers Resources page states the following about the string type:
Strings, with some usual escape sequences: \n, \, ". Unescaped
line-breaks (both \n ...
1
vote
1answer
52 views
1
vote
1answer
46 views
How are strings serialized in Tezos?
How are strings serialized to byte arrays? I understand that they are treated like strings, and that ASCII (or utf8) encoding is used. But what about the rest of the bytes, what do they mean?
Running ...
0
votes
1answer
26 views
Can I use escape characters in LIGO strings?
I would like to insert some special ASCII characters that I only know how to express as numbers. In Python I would for example be able to write the SYN control character as \x16 since 0x16 is SYN in ...