Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database error 1366 #978

Open
icubex opened this issue Aug 17, 2023 · 11 comments
Open

Database error 1366 #978

icubex opened this issue Aug 17, 2023 · 11 comments

Comments

@icubex
Copy link

icubex commented Aug 17, 2023

We get the following error message when entering a text that contains "饾棾饾椏饾棽饾棽" in the Compose Message field.

Database error 1366 while doing query Incorrect string value: '\xF0\x9D\x97\xB3\xF0\x9D...' for column infusion_list.phplist_messagedata.data at row 1

@michield
Copy link
Member

Really? that's odd. phpList definitely doesn't filter on "free" or something. Looks more like a Multibyte string problem. Are your database tables using the correct collation?

@icubex
Copy link
Author

icubex commented Sep 18, 2023

What collation should that be ? And shouldn't that have been setup by the PHPList installer ?

@icubex
Copy link
Author

icubex commented Sep 19, 2023

Yes it's similar to the SO entry. Our PHPList database uses some Latin variety character set and collation - not sure how that happened. Anyway, apparently it should be using UTF8 variety character set and collation to handle the "饾棾饾椏饾棽饾棽" character sequence, correct ? Is there a way to switch the database to UTF8 ?

@michield
Copy link
Member

It should initialise in UTF-8, but you can try to go to system -> convert to UTF8

@icubex
Copy link
Author

icubex commented Sep 20, 2023

It says "The DB was already converted to UTF-8 on 2015-01-12 21:23". I previously ran the query "SHOW COLLATION LIKE 'latin%';" on the PHPList database which resulted in lots of latin variety collations so I thought the database was a latin variety but actually it's easy to see it's a UTF8 variety (utf8mb3_general_ci). So now it's not clear to me why the database was not able to handle the "饾棾饾椏饾棽饾棽" character sequence.

@michield
Copy link
Member

Yes, very strange. Can you post the exact string you entered in phpList (I presume in the subject or body)? Then I can try to replicate it.

@icubex
Copy link
Author

icubex commented Sep 21, 2023

The string is "饾棾饾椏饾棽饾棽". FYI, I created it using an online website for creating bold text without HTML.

@michield
Copy link
Member

Ah, I think you may need to post the URL to create that, because I think Github has sanitised the text. It must be some unicode trick. I wonder if you need some utf8mb variant instead.

@icubex
Copy link
Author

icubex commented Sep 22, 2023

It was a website like https://lingojam.com/BoldTextGenerator.
The database already uses utf8mb3_general_ci, or do you mean it should use another utf8mb variant ?

@michield
Copy link
Member

michield commented Nov 5, 2023

Can you check if #1001 fixes it for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants