#103·zerox

UnicodeEncodeError when writing data to file

Author: rezawrCreated Nov 22, 2024Updated Jul 4, 2025

We encountered a UnicodeEncodeError in our Python application when attempting to write text data to a file. This issue occurs when characters in the data cannot be encoded using the default charmap codec (likely CP1252 on Windows systems). Do you have any concern about this ?

updated: I think this just happening when i tried this on windows