Jump to content

Unicode strings: Difference between revisions

Added Kotlin
(→‎{{header|Ruby}}: added info about Full Unicode case mapping)
(Added Kotlin)
Line 748:
<lang Julia>julia>println("\u2708")
✈</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}}==
9,490

edits

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