ERROR_ILLEGAL_CHARACTER 0x80070246
Error code 582 · HRESULT 0x80070246
An illegal character was encountered. For a multi-byte character set this includes a lead byte without a succeeding trail byte. For the Unicode character set this includes the characters 0xFFFF and 0xFFFE.
What it means
ERROR_ILLEGAL_CHARACTER is a Windows error code (system error 582, returned as HRESULT 0x80070246) reported by Windows. Its official message is: “An illegal character was encountered. For a multi-byte character set this includes a lead byte without a succeeding trail byte. For the Unicode character set this includes the characters 0xFFFF and 0xFFFE.”
How to fix ERROR_ILLEGAL_CHARACTER
- Reboot once — many one-off system codes disappear with a clean restart
- Repair system files: 'sfc /scannow' then 'DISM /Online /Cleanup-Image /RestoreHealth'
- Find the source in Event Viewer → System: filter for this exact code and open its provider link
Related errors
Source: Microsoft WinError.h
Last updated: