Community Discussions and Support
PMail community runtime error when posting emoji

Given any 4-byte emoji, which could be copied from
https://unicodeplus.com/U+1F37D
(yes, copy the glyph, the big plate with fork and knife from the top to your clipboard)
and including it in any post to community.pmail.com results in a fatal runtime error:


Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xF0\x9F\x8D\xBD\x0A\x0A...' for column `codoforum`.`codo_posts`.`imessage`

Pls. fix the community backend mysql database to store utf-8 strings with characters > 3 bytes.
This can be done by changing the resp. column imessage or entire codo_posts-table's character set and collation from utf8 to utf8mb4.
https://www.bytebase.com/reference/mysql/error/1366-incorrect-string-value/


Regards, Steffen


Given any 4-byte emoji, which could be copied from https://unicodeplus.com/U+1F37D (yes, copy the glyph, the big plate with fork and knife from the top to your clipboard) and including it in any post to community.pmail.com results in a fatal runtime error: ```` Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xF0\x9F\x8D\xBD\x0A\x0A...' for column `codoforum`.`codo_posts`.`imessage````` Pls. fix the community backend mysql database to store utf-8 strings with characters > 3 bytes. This can be done by changing the resp. column imessage or entire codo_posts-table's character set and collation from ```` utf8 ```` to ```` utf8mb4````. https://www.bytebase.com/reference/mysql/error/1366-incorrect-string-value/ Regards, Steffen

Did you report it via the "Report site problem" entry in the "Report links" section on top of this page between the search and notifiy icons?


Did you report it via the "Report site problem" entry in the "Report links" section on top of this page between the search and notifiy icons?
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

Steffen, I suggest posting this in the Site Feedback category. I think it is more likely to reach the eyes of the site administrator if posted there.


Steffen, I suggest posting this in the Site Feedback category. I think it is more likely to reach the eyes of the site administrator if posted there.

Just to note: I have a little program that I wrote to scan files, and find the non-ascii characters the might contain. Uses a file with a few UTF characters.
58M Oct 11 07:20 utf-8codeslook.csv
wc -l utf-8codeslook.csv
1111936 utf-8codeslook.csv
That is lines about 1.1 million characters.


So handling them all would be a huge task.


Example of checking a file results.
findnoascii uogemp.csv
Using File /usr/local/share/findnoascii/utf-8codeslook.csv
Created - uogemp.csv.out with line/position details of utf8 characters
Created - uogemp.csv.out-sum with total counts of utf8 characters
$ cat uogemp.csv.out-sum
1 c3a5 [å] LATIN SMALL LETTER A WITH RING ABOVE (U+00E5)
4 c3b1 [ñ] LATIN SMALL LETTER N WITH TILDE (U+00F1)
3 e28099 [’] RIGHT SINGLE QUOTATION MARK (U+2019)


Only 8 utf characters in this file 77132 Nov 28 01:02 uogemp.csv


Just to note: I have a little program that I wrote to scan files, and find the non-ascii characters the might contain. Uses a file with a few UTF characters. 58M Oct 11 07:20 utf-8codeslook.csv wc -l utf-8codeslook.csv 1111936 utf-8codeslook.csv That is lines about 1.1 million characters. So handling them all would be a huge task. Example of checking a file results. findnoascii uogemp.csv Using File /usr/local/share/findnoascii/utf-8codeslook.csv Created - uogemp.csv.out with line/position details of utf8 characters Created - uogemp.csv.out-sum with total counts of utf8 characters $ cat uogemp.csv.out-sum 1 c3a5 [å] LATIN SMALL LETTER A WITH RING ABOVE (U+00E5) 4 c3b1 [ñ] LATIN SMALL LETTER N WITH TILDE (U+00F1) 3 e28099 [’] RIGHT SINGLE QUOTATION MARK (U+2019) Only 8 utf characters in this file 77132 Nov 28 01:02 uogemp.csv

mikes@guam.net

Thank you @idw, @BrianFluet. I wasn't aware of that link and posted the bug report to there.

Steffen


Thank you @idw, @BrianFluet. I wasn't aware of that link and posted the bug report to there. Steffen
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft