Terminal control/Unicode output: Difference between revisions
Content added Content deleted
(Adds Clojure solution) |
(expanded to include checking LC_ALL and LC_CTYPE) |
||
Line 137: | Line 137: | ||
=={{header|Clojure}}== |
=={{header|Clojure}}== |
||
<lang 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 |
"Unicode is supported on this terminal and U+25B3 is : \u25b3" |
||
⚫ | |||
</lang> |
|||
{{out}} |
{{out}} |