0% found this document useful (0 votes)
36 views2 pages

Ascii VS Unicode

- ASCII (American Standard Code for Information Interchange) assigns numeric codes to letters, numbers, and other characters to allow computers to understand text. Each character is assigned a 7-bit binary number from 0 to 127. For example, the letter 'A' is assigned the code 65. - ASCII codes only support 128 characters, limiting the languages it can represent. Unicode was developed to support many more languages by using more bits per character, allowing representation of over 1 million characters.

Uploaded by

aslam_326580186
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views2 pages

Ascii VS Unicode

- ASCII (American Standard Code for Information Interchange) assigns numeric codes to letters, numbers, and other characters to allow computers to understand text. Each character is assigned a 7-bit binary number from 0 to 127. For example, the letter 'A' is assigned the code 65. - ASCII codes only support 128 characters, limiting the languages it can represent. Unicode was developed to support many more languages by using more bits per character, allowing representation of over 1 million characters.

Uploaded by

aslam_326580186
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ASCII vs Unicode

• Computers understand binary language.


• The data we provide to computer will be stored in binary form only.
• Ex: if we have number 10 then it is stored in the form binary I.e 1010

10 1010 both are numeric

How our computer system understand s alphabets letters, English alphabets?

As computers can understand only numeric how do we make them understand letters and
alphabets?

• The solution is for English characters and other characters. We de ne some codes.

• Let us say 65-A

• If giving number and saying that it is a number

• If given number and saying a character then it is a code

• For English letter and other characters there are some codes. And those codes are called as
ASCII codes.

• ASCII- American standard code for information interchange so, for every letter there is a code
available.

• When we say a character A so, the number 65 will not appear on the screen it will appear as A
only.

A->65
Z->90
a->97
Z->122
fi
ASCII code are available for English uppercase alphabets lower case alphabets and digits as well
as the special case characters and also the control characters that are available on the keyboard

ASCII code range from 0-127=128

Total 128 codes are there 128= 2 ^7( 2 to the power of 7)

Within 7 bits ASCII code can be represented.

When we convert into binary form. The binary digits will be 7 not more than 7

If we take 65
1000001
1 byte= 8 bits
Enough to store ASCII Code
s="A"
ord(s)
65
ASCII code is a universal code which every machine follows in the universe.

You might also like