Sep 05

By casting the integer ASCII value to a char.


int asciiValue = 65;
char ch = (char) asciiValue;

written by objects \\ tags: , ,

One Ping to “How do I convert an ASCII value to a character?”

  1. How to convert a hex string to an ASCII character? | web development helpdesk Says:

    […] If you have a hex value as a string and you need the ASCII character that corresponds to that value then you need to parse your string to get its value. Once you have its value it is a simple cast to convert it to an ASCII character […]


One Response to “How do I convert an ASCII value to a character?”

  1. kirubakaran Says:

    its use full for me and its working fine.

Leave a Reply

You must be logged in to post a comment.