Jump to content

Terminal control/Unicode output: Difference between revisions

Adds Clojure solution
(Scala added)
(Adds Clojure solution)
Line 134:
Unicode is supported on this terminal and U+25B3 is : â³
</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}}==
<lang Haskell>import System.Environment
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.