Terminal control/Unicode output: Difference between revisions

Added Kotlin
(Added Kotlin)
Line 252:
<pre>
This output device supports Unicode: △
</pre>
 
=={{header|Kotlin}}==
{{works with|Ubuntu|14.04}}
<lang scala>// version 1.1.1
 
fun main(args: Array<String>) {
val supportsUnicode = "UTF" in System.getenv("LANG").toUpperCase()
if (supportsUnicode)
println("This terminal supports unicode and U+25b3 is : \u25b3")
else
println("This terminal does not support unicode")
}</lang>
 
{{out}}
<pre>
This terminal supports unicode and U+25b3 is : △
</pre>
 
9,476

edits