Terminal control/Unicode output: Difference between revisions
Content added Content deleted
(added FunL) |
(Added zkl) |
||
Line 273: | Line 273: | ||
The terminal might support UTF-8, but its fonts might not have every Unicode character. Unless they have U+25B3, the output will not look correct. Greek letters like U+25B3 tend to be common, but some fonts might not have Chinese characters (for example), and almost no fonts have dead scripts such as Cuneiform. |
The terminal might support UTF-8, but its fonts might not have every Unicode character. Unless they have U+25B3, the output will not look correct. Greek letters like U+25B3 tend to be common, but some fonts might not have Chinese characters (for example), and almost no fonts have dead scripts such as Cuneiform. |
||
=={{header|zkl}}== |
|||
This code works for Unix/Linux, Windows XP cmd terminals don't support UTF-8. |
|||
<lang zkl>if(System.isUnix and T("LC_CTYPE","LC_LANG","LANG").apply(System.getenv) |
|||
.filter().filter("holds","UTF")) |
|||
println("This terminal supports UTF-8 (\U25B3;)"); |
|||
else println("I have doubts about UTF-8 on this terminal.");</lang> |
|||
{{out}} |
|||
<pre> |
|||
This terminal supports UTF-8 (△) |
|||
</pre> |
|||
=={{header|ZX Spectrum Basic}}== |
=={{header|ZX Spectrum Basic}}== |
||
Line 288: | Line 299: | ||
</lang> |
</lang> |
||
{{omit from|BASIC}} |
{{omit from|BASIC}}{{omit from|GUISS}} |
||
{{omit from|GUISS}} |