Terminal control/Unicode output: Difference between revisions

expanded to include checking LC_ALL and LC_CTYPE
(Adds Clojure solution)
(expanded to include checking LC_ALL and LC_CTYPE)
Line 137:
=={{header|Clojure}}==
<lang clojure>
(if-not (empty? (filter #(and (not (nil? %)) (.contains (.toUpperCase %) "UTF"))
(if (.contains (clojure.string/upper-case (System/getenv "LANG")) "UTF")
(map #(System/getenv %) ["LANG" "LC_ALL" "LC_CTYPE"])))
"Unicode is supported on this terminal and U+25B3 is : \u25b3"
"Unicode is not supported on this terminal. and U+25B3 is : \u25b3")</lang>
"Unicode is not supported on this terminal and U+25B3 is : \u25b3.")
</lang>
 
{{out}}
Anonymous user