Character Representation/Encoding: Practice

Fun Class Activity:

  1. Convert the following strings to binary ASCII:
    1. Hello World!
    2. 12345
    3. lol. LOL!
  2. Repeat the above for hexadecimal ASCII.

Note: ASCII characters have the same encoding in Unicode's UTF-8 format. That is, ASCII is a subset of UTF-8.

The C and C++ languages use ASCII for character encoding, while Java (and other) languages uses Unicode.