J4 Issue ?
avatar chetanmadaan
chetanmadaan
22 Apr 2019

Steps to reproduce the issue

Create an article, add Emoji from Toolbar, try to save it.

Expected result

Should save the emoji and display on frontend.

Actual result

Save failed with the following error: Incorrect string value: '\xF0\x9F\x94\xA2
image

System information (as much as possible)

Joomla 4.0 Alpha 8.
PHP 7.2.15
MySQLi 5.5.5-10.1.38-MariaDB

Additional comments

I made sure the #__conent table and columns are utf8mb4 collate (which I think is default in J4).

avatar chetanmadaan chetanmadaan - open - 22 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 22 Apr 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Apr 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 23 Apr 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Apr 2019

related #7803?

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Apr 2019
Status New Information Required
avatar brianteeman
brianteeman - comment - 23 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Apr 2019
Status Information Required Discussion
avatar brianteeman
brianteeman - comment - 23 Apr 2019

It works in Joomla 3 :(

avatar brianteeman
brianteeman - comment - 23 Apr 2019

No its nothing to do with anything there. Inserting an emoji in the article title works perfectly when done directly in the database. It is an issue somewhere with the joomla validation code

avatar infograf768
infograf768 - comment - 23 Apr 2019

I modified here introtext and fulltext types from Medium Type to blob and I don't get the error.
@alikon ?

avatar brianteeman
brianteeman - comment - 23 Apr 2019

I repeat - it is nothing to do with the mysql field type as you can successfully insert the multibyte character directly in the database AND it worked in joomla 3 with the same mysql settings

avatar Bakual
Bakual - comment - 23 Apr 2019

@brianteeman Just to understand: When you say "directly in the database" you use the CLI or a PHP based tool like phpMyAdmin? The latter would be closer to what Joomla does (using PHP).
It may be that both of you are right, after all ?

avatar brianteeman
brianteeman - comment - 23 Apr 2019

I mean directly in the database not via php with heidisql or sequel pro

avatar wilsonge
wilsonge - comment - 23 Apr 2019

The only thing I'm aware that changed related to that was #22035

avatar chetanmadaan
chetanmadaan - comment - 23 Apr 2019

Please let me know if any of you would like any additional information or would like me to test anything?

I also went ahead and changed the driver from Mysqli to Mysql (PDO) and now the system info reads the following info as well.

Database Collation Database Connection Collation
utf8mb4_unicode_ci utf8_general_ci
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Apr 2019
Title
[4.0] Unable to save Article with Emoji in it (Joomla Default install)
[4.0] Unable to save Article with Emoji in it
avatar franz-wohlkoenig franz-wohlkoenig - edited - 23 Apr 2019
avatar wilsonge
wilsonge - comment - 23 Apr 2019

Aha that was the hint i needed. Try #24704

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Apr 2019

Closed as having Pull Request.

avatar franz-wohlkoenig franz-wohlkoenig - close - 23 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Apr 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-04-23 14:19:53
Closed_By franz-wohlkoenig
avatar infograf768
infograf768 - comment - 23 Apr 2019

@wilsonge
Your patch does not work here (mysqli);

avatar chetanmadaan
chetanmadaan - comment - 23 Apr 2019

didn't work for me either.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Apr 2019

@chetanmadaan can you please comment on #24704

avatar chetanmadaan
chetanmadaan - comment - 23 Apr 2019

@chetanmadaan can you please comment on #24704

Just did.

Add a Comment

Login with GitHub to post a comment