Character codes: Difference between revisions

m
(+Stata)
Line 1,627:
 
=={{header|Stata}}==
The Mata '''ascii''' function transforms a string ininto a numeric vector of UTF-8 bytes. For instance:
 
<lang stata>: ascii("α")
Line 1,644:
1 | 87 101 32 116 104 101 32 80 101 111 112 108 101 |
+-------------------------------------------------------------------------------+</lang>
 
Conversely, the '''char''' function transforms a byte vector into a string:
 
<lang stata>: char((73,32,115,116,97,110,100,32,104,101,114,101))
I stand here</lang>
 
=={{header|Swift}}==
1,336

edits