Character codes: Difference between revisions

(Updated D entry, removed the cast.)
Line 1,181:
<lang vba>Debug.Print Chr(97) 'Prints a
Debug.Print [Code("a")] ' Prints 97</lang>
 
=={{header|Vim Script}}==
The behavior of the two functions depends on the value of the option <code>encoding</code>.
<lang vim>"encoding is set to utf-8
echo char2nr("a")
"Prints 97
 
echo nr2char(97)
"Prints a</lang>
 
 
=={{header|Visual Basic .NET}}==