Character codes: Difference between revisions

Content added Content deleted
Line 809: Line 809:
=={{header|Julia}}==
=={{header|Julia}}==
Julia character constants (of type <code>Char</code>) are treated as an integer type representing the Unicode codepoint of the character, and can easily be converted to and from other integer types.
Julia character constants (of type <code>Char</code>) are treated as an integer type representing the Unicode codepoint of the character, and can easily be converted to and from other integer types.

<lang julia>println(int('a'))
println(char(97))</lang>
<lang julia>println(Int('a'))
println(Char(97))</lang>

{{out}}<pre>97
{{out}}<pre>97
a</pre>
a</pre>