November 19, 2026
TryHackMe Data Encoding Walkthrough: ASCII, Unicode and UTF
A text file can contain the right bytes and still display nonsense. If the program reading it uses a different encoding from the one usedโฆ

By 5um1t0x
3 min read
A text file can contain the right bytes and still display nonsense. If the program reading it uses a different encoding from the one used to save it, familiar letters can turn into strange symbols.
TryHackMe's Data Encoding room explains how computers turn numbers into text, including letters, punctuation, and emojis. It builds on Data Representation by showing what those stored values actually mean.
Task 1: Introduction
Computers store data as bits, but bits alone don't tell us whether we're looking at a letter, a number, or a colour.
Character encoding provides the rules for interpreting stored values as text. For example, a particular numeric value can represent the letter A when interpreted using an agreed character encoding.
This room covers:
- ASCII and its limitations.
- Unicode characters and code points.
- UTF-8, UTF-16, and UTF-32.
- How emojis are represented.
- Why mismatched encodings produce strange text.
Mark the introductory task as complete to continue.
Task 2: ASCII
How ASCII Represents Text
ASCII stands for American Standard Code for Information Interchange.
The original standard uses seven bits, giving it 128 possible values, numbered from 0 to 127. These cover English letters, digits, punctuation, and control characters.
For example, uppercase A can be represented as:
Character: A
Decimal: 65
Hexadecimal: 41
Binary: 01000001Character: A
Decimal: 65
Hexadecimal: 41
Binary: 01000001The binary example is padded to eight bits, but the value still fits within ASCII's seven-bit range.
Uppercase and lowercase letters have different codes. Lowercase a, for instance, has decimal value 97, not 65.
Printable and Control Characters
Not every ASCII entry represents a visible symbol.
Letters and punctuation are printable characters. Control characters represent actions or formatting, such as a line feed, tab, or bell.
This distinction matters when inspecting a file: a value can be present even if it doesn't appear as a normal character on screen.
Working Through the ASCII Exercises
Click View Site to open the room's lookup tool. Pay attention to whether the question uses decimal or hexadecimal values.
What is the ASCII code in decimal for the character @?
The @ character has decimal value:
66Its hexadecimal equivalent is 40. Those are two ways of writing the same numeric value.
What character has the ASCII code of 35 in decimal?
Looking up decimal 35 gives:
##What is the name of the character that has the ASCII code of 7?
Decimal 7 is the bell control character:
BELBELIt was traditionally used to trigger an audible alert, although how it behaves depends on the application or terminal.
Where ASCII Falls Short
ASCII cannot represent all the accented letters, writing systems, and symbols people use.
Older encodings such as ISO-8859โ1 and ISO-8859โ2 added characters for different language groups. However, the same byte value could represent different characters depending on the encoding.
Reading a file with the wrong encoding can therefore produce garbled text, often called mojibake.
Task 3: Unicode
What Unicode Changes
Unicode assigns characters unique numeric identifiers called code points.
For example:
U+0041 = A
U+03A9 = ฮฉ
U+3042 = ใU+0041 = A
U+03A9 = ฮฉ
U+3042 = ใThe U+ prefix indicates that the following hexadecimal number is a Unicode code point.
Unicode covers many writing systems, symbols, and emojis. Instead of choosing separate character sets for different languages, applications can work with a shared standard.
However, assigning a code point and storing it as bytes are different jobs. That is where UTF encodings come in.
UTF-8, UTF-16, and UTF-32
UTF-8 uses one to four bytes per code point. ASCII characters use one byte, preserving compatibility with ASCII. UTF-8 is widely used on the web.
UTF-16 uses two or four bytes per code point. Characters outside its basic range require a pair of 16-bit code units, called a surrogate pair.
UTF-32 uses four bytes per code point. Its fixed width is straightforward, but it often requires more storage than UTF-8 for ordinary text.
A visible emoji can also combine multiple code points, so one symbol on screen doesn't always correspond to one encoded value.
Working Through the Unicode Exercises
Open the task's View Site tool and inspect the requested characters.
The room displays its lookup values using U+ notation. Strictly, this notation identifies a code point; the UTF format determines how that value is stored.
What is the UTF-32 encoding of ๐?
The tool displays:
U+0001F60CU+0001F60CThis is the relieved face emoji. Its code point is commonly written as U+1F60C; the tool pads the value to eight hexadecimal digits.
What is the UTF-16 encoding of ใท?
The value is:
U+30B7U+30B7Look carefully at the character. ใท is the Japanese katakana character shi, while ใ is tsu. They look similar but have different code points.
What character has the UTF-16 value U+2615?
The character is:
โโUnicode names it HOT BEVERAGE. Its appearance may vary slightly between fonts and platforms.
What character has the UTF-16 value U+2658?
The character is:
โโThis is the white chess knight, not the black knight symbol.
Copy the actual character when submitting these symbol-based entries, rather than typing its descriptive name.
Task 4: Conclusion
The final task reviews ASCII, Unicode, and the three UTF encodings.
The key distinction is that Unicode identifies characters, while UTF-8, UTF-16, and UTF-32 describe how to encode them.
Mark the task as complete to finish the room.
Final Thoughts
Strange-looking text doesn't always mean a file is damaged. Sometimes the bytes are intact, but the program is interpreting them using the wrong rules.
Understanding character encoding helps explain those problems. It also makes raw data easier to inspect: you can distinguish a printable character from a control code, recognise Unicode notation, and understand why the same text can occupy different amounts of storage.
Source: TryHackMe โ Data Encoding.
Powered by Sukshield
Follow me on
LinkedIn: Sumit Battani | Twitter: https://twitter.com/5um1t0x TryHackMe: TryHackMe | 5um1t0x