Terminal control/Display an extended character: Difference between revisions
Content deleted Content added
→{{header|BASIC}}: Add AWK. |
|||
Line 22:
Put("札幌");
end Unicode;</lang>
=={{header|AWK}}==
You can print a literal "£".
<lang awk>BEGIN { print "£" }</lang>
You can print a "£" using the escape sequences that match the encoding of your terminal.
{| class="wikitable"
! iso-8859-1
| <tt>"\xa3"</tt>
|-
! euc-jp
| <tt>"\xa1\xf2"</tt>
|-
! utf-8
| <tt>"\xc2\xa3"</tt>
|-
! gb18030
| <tt>"\x81\x30\x84\x35"</tt>
|}
<lang awk>BEGIN { print "\xc2\xa3" } # if your terminal is utf-8</lang>
=={{header|BASIC}}==
|