Terminal control/Unicode output: Difference between revisions

Content added Content deleted
(Scala added)
(Adds Clojure solution)
Line 134: Line 134:
Unicode is supported on this terminal and U+25B3 is : â³
Unicode is supported on this terminal and U+25B3 is : â³
</pre>
</pre>

=={{header|Clojure}}==
<lang clojure>
(if (.contains (clojure.string/upper-case (System/getenv "LANG")) "UTF")
"Unicode is supported on this terminal and U+25B3 is : \u25b3"
"Unicode is not supported on this terminal.")</lang>

{{out}}
<pre>"Unicode is supported on this terminal and U+25B3 is : △"</pre>

=={{header|Haskell}}==
=={{header|Haskell}}==
<lang Haskell>import System.Environment
<lang Haskell>import System.Environment