Terminal control/Unicode output: Difference between revisions

m
(Added Haskell)
Line 84:
main = do
x <- mapM lookupEnv ["LANG", "LC_ALL", "LC_CTYPE"]
if any ((isInfixOf "UTF" `isInfixOf`). map toUpper) $ catMaybes x
then putStrLn "UTF supported: \x25b3"
else putStrLn "UTF not supported"
Line 92:
UTF supported: △
</pre>
 
=={{header|Mathematica}}==
<lang Mathematica>If[StringMatchQ[$CharacterEncoding, "UTF*"], Print[FromCharacterCode[30000]], Print["UTF-8 capable terminal required"]]
Anonymous user