A UTF-8 document contains the Japanese character あ.
Decide whether it can be losslessly converted to ordinary ISO-8859-1.
Which description is correct?
ISO-8859-1 is a single-byte Western character set and does not contain Japanese characters such as あ.
Detailed explanation
Correct. The target character set has no representation for あ, so ordinary conversion fails.
Correct. The target character set has no representation for あ, so ordinary conversion fails.
Incorrect. ISO-8859-1 does not cover all Unicode.
Incorrect. ISO-8859-1 does not cover all Unicode.
Incorrect. あ is outside ASCII.
Incorrect. あ is outside ASCII.
Incorrect. ISO-8859-1 does not use ISO-2022-style character-set switching.
Incorrect. ISO-8859-1 does not use ISO-2022-style character-set switching.
Try it yourself
An example you can run in a temporary verification environment.
printf 'あ' | iconv -f UTF-8 -t ISO-8859-1Expected result
変換不能を示すiconvエラーKey points
- The target must contain the character
- ISO-8859-1 is single-byte
- Japanese is outside its range
Notes
- Environment: UTF-8端末 / 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.