How to convert UNICODE to ASCII?

How to convert a number from decimal to ASCII?

  • "Convert decimal 8,723 o both BCD and ASCII codes. For ASCII, an even parity bit is to be appended to the left." My instructor has not explained this clearly. I know how to convert the number to BCD: 1000 | 0111 | 0010 | 0011 But I don't know how to get to ASCII from there... Can anyone help?

  • Answer:

    I would convert to ASCII from the original decimal number, and not the BCD, because it will be easier to convert. Just add 48 to each digit. The character '0' is an ascii 48, the character '1' is 49, etc. all the way up to '9'. So, for each of your digits, add 48. For example, 8,723 in ASCII is: 56 55 50 51 ASCII codes are typically one byte (eight bits), so if you are using binary to represent the ASCII code, use eight bits. If you represent them as decimal you don't have to worry about that.

Maha Jaala at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.