Character codes: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 998: | Line 998: | ||
message char hex"c3" & char hex"a8"; % since C3 A8 is the UTF-8 encoding for "è" |
message char hex"c3" & char hex"a8"; % since C3 A8 is the UTF-8 encoding for "è" |
||
end</lang> |
end</lang> |
||
=={{header|Microsoft Small Basic}}== |
|||
<lang vb>TextWindow.WriteLine("The ascii code for 'A' is: " + Text.GetCharacterCode("A") + ".") |
|||
TextWindow.WriteLine("The character for '65' is: " + Text.GetCharacter(65) + ".")</lang> |
|||
{{out}} |
|||
<lang basic>The ascii code for 'A' is: 65. |
|||
The character for '65' is: A. |
|||
Press any key to continue...</lang> |
|||
=={{header|Modula-2}}== |
=={{header|Modula-2}}== |
||
Line 1,026: | Line 1,037: | ||
<lang modula3>ORD('a') (* Returns 97 *) |
<lang modula3>ORD('a') (* Returns 97 *) |
||
VAL(97, CHAR); (* Returns 'a' *)</lang> |
VAL(97, CHAR); (* Returns 'a' *)</lang> |
||
=={{header|MUMPS}}== |
=={{header|MUMPS}}== |