Unicode strings: Difference between revisions

Content added Content deleted
(→‎{{header|Ruby}}: added info about Full Unicode case mapping)
(Added Kotlin)
Line 748: Line 748:
<lang Julia>julia>println("\u2708")
<lang Julia>julia>println("\u2708")
✈</lang>
✈</lang>

=={{header|Kotlin}}==
In the version of Kotlin targetting the JVM, Kotlin strings are mapped to Java strings and so everything that has already been said in the Java entry for this task applies equally to Kotlin.

I would only add that normalization of strings is supported in both languages via the java.text.Normalizer class.

Here's a simple example of using both unicode identifiers and unicode strings in Kotlin:
<lang scala>// version 1.1.1

fun main(args: Array<String>) {
val åäö = "as⃝df̅ ♥♦♣♠ 頰"
println(åäö)
}</lang>

{{out}}
<pre>
as⃝df̅ ♥♦♣♠ 頰
</pre>


=={{header|Lasso}}==
=={{header|Lasso}}==