Review how ISO-2022-JP switches character sets in email-oriented encoding.
Which description is correct?
ISO-2022-JP uses escape sequences to switch between ASCII and Japanese character sets while remaining in a 7-bit byte range.
Detailed explanation
Incorrect. Direct one-to-four-byte Unicode encoding describes UTF-8.
Incorrect. Direct one-to-four-byte Unicode encoding describes UTF-8.
Correct. Escape sequences switch between character-set states.
Correct. Escape sequences switch between character-set states.
Incorrect. A single-byte Western set resembles ISO-8859-1.
Incorrect. A single-byte Western set resembles ISO-8859-1.
Incorrect. ASCII alone does not provide Japanese character-set switching.
Incorrect. ASCII alone does not provide Japanese character-set switching.
Try it yourself
An example you can run in a temporary verification environment.
printf 'Aあ' | iconv -f UTF-8 -t ISO-2022-JP | od -An -tx1Expected result
41に続き1bから始まる文字集合切替sequenceを含むbyte列Key points
- Escape sequences
- Stateful encoding
- A sequence returns to ASCII
Notes
- Environment: UTF-8端末 / ISO-2022-JP対応iconv
- 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.