Question 22 • Introduction to Information Technology - EL3701
With errors="strict", Python raises a UnicodeError when it encounters text it cannot encode or decode. The writer must correct the input and try again; the other standard handlers, such as "ignore" and "replace," instead continue by skipping or substituting problematic characters. The correct choice is “errors="strict".”
AI-written and checked against the verified answer.