Coding Systems - ASCII and Unicode
Coding Systems - ASCII and Unicode
Starter
• Using the link post in note, outline the key points from coding
systems (ASCII and Unicode) from GCSE.
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Coding Systems
LO: Exploring how coding systems are used
Success Criteria
• Explain the what the two most common character coding schemes used in
computing.
• Explain the workings for both character sets and alternative versions of
each
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Coding Systems
You need to know how each works and the benefits and drawbacks of
using them. (Many parts of this ppt and the text books have
information that can support this)
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
• The most recent version is an 8-bit code allowing for 256 characters.
However 7-bit is more common. So if it 7 or 8 bit? (next slide)
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
ASCII table – is it really 8 bits?
• ASCII normally uses 8 bits (1 byte) to store each character.
• The 8th bit is used as a check digit, meaning that only 7 bits are available to
store each character. (ASCII table on next slide)
• 256 characters (extended ASCII) are not sufficient to represent all of the
possible characters, numbers and symbols.
• It was initially developed in English and therefore did not represent all of the
other languages and scripts in the world.
• The range of platforms and program has increased dramatically with more
developers from around the world using a much wider range of characters.
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
ASCII Table
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Quick Question
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Key words
Keyword
Unicode: a standard binary coding system that has superseded ASCII
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
• How many ASCII ‘characters’ does the following piece of text use?
Hello Mate,
ASCII rocks!
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
• How many ASCII ‘characters’ does the following piece of text use?
Hello Mate,
ASCII rocks!
Hello Mate,[EOL][CR]
ASCII rocks![EOL]
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
UNICODE
• The problem with ASCII is that only allows us to use a small number of
characters (128 or 256 for extended ASCII).
• This is okay for English speaking countries but what happens if you live
in a country that uses a different character set?
• Chinese characters 汉字
• Japanese characters 漢字
• Cyrillic Кири́ллица
• Gujarati ગુજરાતી
• Urdu ا You can see that we quickly run into trouble
as ASCII can't possibly store these hundreds
of thousands of extra characters in just 7 bits.
• As a result, a new standard called Unicode has emerged which follows the
same basic principles as ASCII in that in one of its forms it has a unique 8-bit
code for every keyboard character on a standard English keyboard.
• ASCII codes have been subsumed within Unicode meaning that the ASCII
code for capital letter A is 65 and so is the Unicode code for the same
character. Unicode also includes international characters or over 29 countries
and even includes conversions of classical and ancient characters.
Keyword
Success Criteria
Unicode: a standard binary coding system that has superseded ASCII
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
UNICODE
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Activity 2 – ASCII and UNICODE
• Complete the questions on ASCII and UNICODE. Write the answers in your
exercise book.
1. The ASCII code for the letter ‘D’ is 100 0100, what is the letter ‘G’ stored as?
2. The ASCII code for the letter 's' is 111 0011, what is the letter 'm' stored as?
6. You are designing a computer system for use worldwide, what character
encoding scheme should you use and why?
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
2. The ASCII code for the letter 's' is 111 0011, what is the letter 'm' stored as?
110 1101 - as it is 6 characters down in the alphabet
6. You are designing a computer system for use worldwide, what character encoding scheme should you use and
why?
Unicode as it would allow you to display non Latin character sets such as Hindi and Cyrillic
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Coding ASCII
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Activity 3
• Write notes from this presentation and pages 207-209 (not including
error checking)
• Remember you may be asked how ASCII and/or Unicode work and
the benefits and drawbacks of using them.
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
Activity 4
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
• Write a program in Python that takes and encrypts the string “Hello AS Computer
Science”.
• The program must not encrypt spaces it must leave them in as spaces.
• Extension:
• Extend this program to read in the string from a text file and write the encrypted string to another
external file.
• Create another function called Decrypt that will revert the string back to its original form.
Success Criteria
Explain the what the two most common character coding schemes used in computing.
Describe the advantages and disadvantages of both of the character coding schemes.
Explain the workings for both character sets and alternative versions of each
LO: Exploring how coding systems are used
💣 Make this a short term
target. i.e can you have
How are you going to 1
find out? found out what you need
thing to by next lesson?
Try 3 before (asking) I need to
me! find out
more about
You could …
1. Look in your
2 new things class/text book
I learnt today 2. Use a dictionary
3. Ask a friend
✔