I am migrating my ticket system to pgSQL. I allow for e-mail replies where PHP parses each e-mail into it's components and then message is then stored in a pgSQL table named inbox .
The first e-mail parsed and then saved successfully. There were no errors. Now I am receiving the error message
invalid byte sequence for encoding "UTF8": 0x86
I've confirmed the database is using UTF8 encoding: - SHOW SERVER_ENCODING gives a result of UTF8 - SHOW CLIENT_ENCODING originally wasn't UTF8. I set this to UTF8.
The error persists.
email_queue.php contains various PHP classes and functions to receive and send e-mails. The command "file email_queue.php" gives the result:
email_queue.php: PHP script, UTF-8 Unicode text, with very long lines
email_queue_receive.php uses the classes and functions for receive e-mails. This file includes email_queue.php for the functionality. The command "file email_queue_receive.php" gives the result:
email_queue_receive.php: PHP script, ASCII text
From searches I've done ASCII is a valid UTF8.
I haven't yet found a thread specific to this error as a result of parsing e-mail.