Choose the accurate relationship between ASCII and UTF-8.
Which explanation is appropriate?
UTF-8 is backward compatible with ASCII: U+0000 through U+007F use the same single-byte values.
Detailed explanation
Incorrect. ASCII covers only a small 128-character range.
Incorrect. ASCII covers only a small 128-character range.
Incorrect. ASCII characters remain one byte in UTF-8.
Incorrect. ASCII characters remain one byte in UTF-8.
Incorrect. ASCII-range byte values are the same in UTF-8.
Incorrect. ASCII-range byte values are the same in UTF-8.
Correct. ASCII 0-127 have the same one-byte UTF-8 values.
Correct. ASCII 0-127 have the same one-byte UTF-8 values.
Try it yourself
An example you can run in a temporary verification environment.
printf 'A' | od -An -t x1Expected result
41Key points
- ASCII is 7-bit
- First 128 values match
- Non-ASCII can use multiple bytes
Notes
- Environment: POSIX printf / od
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.