Terminal control/Display an extended character: Difference between revisions
Content added Content deleted
(→{{header|BASIC}}: Add AWK.) |
(→{{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>"\ |
| <tt>"\243"</tt> |
||
|- |
|- |
||
! euc-jp |
! euc-jp |
||
| <tt>"\ |
| <tt>"\241\362"</tt> |
||
|- |
|- |
||
! utf-8 |
! utf-8 |
||
| <tt>"\ |
| <tt>"\302\243"</tt> |
||
|- |
|- |
||
! gb18030 |
! gb18030 |
||
| <tt>"\ |
| <tt>"\201\60\204\65"</tt> |
||
|} |
|} |
||
<lang awk>BEGIN { print "\ |
<lang awk>BEGIN { print "\302\243" } # if your terminal is utf-8</lang> |
||
=={{header|BASIC}}== |
=={{header|BASIC}}== |