Converting ASCII and Characters
Convert ASCII value to a character To convert the ASCII value to a character, use type casting like this: [char]65 Convert a character to ASCII...
- Written By: ps1
- Last Updated: April 21, 2025
- 1 minute read
Convert ASCII value to a character To convert the ASCII value to a character, use type casting like this: [char]65 Convert a character to ASCII...
To convert the ASCII value to a character, use type casting like this:
[char]65
To do the opposite and convert a character to its ascii value, use this:
[int][char]'A'
Here, the letter “A” is first converted into a Char type, then into an Integer value.
To process more than one character at a time, use arrays instead:
[int[]][char[]]'Hello'
Contact our sales team to get a personalized demo of our database management software for SQL Server!