Unicode strings: Difference between revisions
Content added Content deleted
(added Elixir) |
(jq) |
||
Line 652: | Line 652: | ||
How broad/deep does the language support Unicode? What encodings (e.g. UTF-8, UTF-16, etc) can be used? Normalization? |
How broad/deep does the language support Unicode? What encodings (e.g. UTF-8, UTF-16, etc) can be used? Normalization? |
||
=={{header|jq}}== |
|||
jq's data types are JSON's data types. In particular, jq strings are UTF-8 strings. See [http://json.org json.org] for further details. |
|||
jq identifiers, however, are restricted to a subset of ASCII. |
|||
The jq command does have several options in support of flexibility when "communicating with the world": |
|||
--raw-input | -R :: each line of input is converted to a JSON string; |
|||
--ascii-output | -a :: every non-ASCII character that would otherwise |
|||
be sent to output is translated to an equivalent |
|||
ASCII escape sequence; |
|||
--raw-output | -r :: output strings as raw strings, e.g. "a\nb" is |
|||
output as: |
|||
a |
|||
b |
|||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
Line 661: | Line 677: | ||
<lang Julia>julia>println("\u2708") |
<lang Julia>julia>println("\u2708") |
||
✈</lang> |
✈</lang> |
||
=={{header|Lasso}}== |
=={{header|Lasso}}== |