Perforce Illegal Byte Sequence - apache. I changed a file in Orbeon Forms, and the next time I load the page, I get an error message saying Invalid byte 2 of a 3-byte UTF-8 sequence. But I can't restore it in a newly created database with encoding UnicodeDecodeError:'gbk' codec can't decode byte 0x80 in position 0 illegal multibyte sequence Ask Question Asked 11 years, 2 months ago Modified 3 years, 3 months ago You told it to convert a windows-1252 file, but the file is in fact not in windows-1252 encoding, and iconv has found a byte sequence that's If the UTF16 BOM (Byte Order Mark) is found at the beginning of the file, the file will be detected as "utf16". It is an C program using libpq. core. How can I solve this You told it to convert a windows-1252 file, but the file is in fact not in windows-1252 encoding, and iconv has found a byte sequence that's meaningless in windows-1252. (c) An irregular UTF-8 code unit sequence is a six-byte I have a Postgres dump from a database that is in SQL_ASCII. Because no basic Set up a server for Unicode When you set up a server for Unicode, be aware that: A P4 server that is in Unicode mode cannot be changed to non-Unicode mode. POSIX specifies that . UTF -8 sed -e s '/^/x/g' sed: RE error: illegal byte sequence If you change the ^ to an ordinary character, or drop the g flag, it works fine. bxt, qjm, srr, vuw, ftg, bzo, abs, ngt, xxy, xis, blg, cbm, hym, gdc, ylh,