Anonymous user
Terminal control/Unicode output: Difference between revisions
→{{header|Python}}
m (→{{header|Sidef}}: modified the code to work with the latest version of Sidef) |
|||
Line 328:
(prinl (char (hex "25b3")))
(quit "UTF-8 capable terminal required") )</lang>
=={{header|Python}}==
<lang Python>import sys
if "UTF-8" in sys.stdout.encoding:
print("△")
else:
raise Exception("Terminal can't handle UTF-8")</lang>
=={{header|Racket}}==
|