Jump to content

Unicode strings: Difference between revisions

jq
(added Elixir)
(jq)
Line 652:
 
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}}==
Line 661 ⟶ 677:
<lang Julia>julia>println("\u2708")
✈</lang>
 
 
=={{header|Lasso}}==
2,503

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.