Terminal control/Display an extended character: Difference between revisions

Content added Content deleted
(→‎{{header|AWK}}: - Hexadecimal gawkisms removed)
Line 24: Line 24:


=={{header|AWK}}==
=={{header|AWK}}==

You can print a literal "£".
You can print a literal "£".


Line 32: Line 33:
{| class="wikitable"
{| class="wikitable"
! iso-8859-1
! iso-8859-1
| <tt>"\xa3"</tt>
| <tt>"\243"</tt>
|-
|-
! euc-jp
! euc-jp
| <tt>"\xa1\xf2"</tt>
| <tt>"\241\362"</tt>
|-
|-
! utf-8
! utf-8
| <tt>"\xc2\xa3"</tt>
| <tt>"\302\243"</tt>
|-
|-
! gb18030
! gb18030
| <tt>"\x81\x30\x84\x35"</tt>
| <tt>"\201\60\204\65"</tt>
|}
|}


<lang awk>BEGIN { print "\xc2\xa3" } # if your terminal is utf-8</lang>
<lang awk>BEGIN { print "\302\243" } # if your terminal is utf-8</lang>


=={{header|BASIC}}==
=={{header|BASIC}}==