Support » Plugin: MailPoet - emails and newsletters in WordPress » Bug: Special charactars within shortcodes

  • When I have a ‘ within a shortcode it will be displayed as “& # 39 ;” (without blanks)

    Example: Placing [newsletter:post_title] within the subject line. If the post title contaigns a special character like ‘ this won’t be show correctly.

    • This topic was modified 3 months, 1 week ago by check2020de.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author MailPoet

    (@wysija)

    Hi @check2020de , please make sure all your database tables collation are utf8mb4_unicode_ci which fully supports emojis.

    Thanks!

    I checked it and all mailpoet tables are ‘utf8mb4_unicode_ci’ or ‘utf8mb4_unicode_520_ci’

    Is this correct? If yes, what else could be the issue?

    • This reply was modified 2 months, 3 weeks ago by check2020de.

    I just did a new test… looks like one of the last updates has fixed the issue.

    Thanks for your help!

    • This reply was modified 2 months, 3 weeks ago by check2020de.

    The issue is back.. have ha installed the second last version and now updated to the last versin which came out today… still the same. 🙁

    Within the desigbner all characters will be displayed correctly, bit if I do the web or mail preview it is back again. It is broken within the subject line and the section “automatic latest content”

    • This reply was modified 2 months, 1 week ago by check2020de.

    Just checkt the database for the collation and replaced all “Let & # 3 9 ; s” (without empty spaces) with “Let’s”
    Then I sent out a test mail and the issue is still there. So I think it’s not a db issue, it’s more an issue with the postnotification template

    • This reply was modified 2 months, 1 week ago by check2020de.
    • This reply was modified 2 months, 1 week ago by check2020de.
    check2020de

    (@check2020de)

    need to correct myself. yesterday I didn’t found any wrong & # 3 9 ; in the DB. Today I found 2 within the table nextend2_section_storage which has something todo with cache I think. Changing this entrys and doing a test mail and the issue was gone.

    Question now is what is causing the wrong DB entries?

    check2020de

    (@check2020de)

    Here’s the list of DB tables sorted by collation:

    https://dlgo.de/db-tables.jpg

    Everything looks ok for me and the fact that manual change of the wrong sections in the tables was solving the issue… this means, that the tables support the ‘ character.

    check2020de

    (@check2020de)

    Ok, identified the issue… it’s the Gutenberg plugin which cause it. But that’s not the only thing.

    – If Gutenberg is installed an ‘ will be written as & # 3 9 ; (without spaces) in the database within the title and body of a post (in several tables)
    – On the website this will be transformed back to an ‘
    – Mailpoet displays exactly the databbase entry in the subject line of the post notification, so “what’s” wil be displayed as “what& # 3 9 ;s” (without spaces)

    Think Gutenberg needs to write it correctly into the database but Mailpoet should handle a “& # 3 9 ;” correctly in the subject line and the body of a post notification. I still have reported this as a bug for for the Gutenberg development. It’s a both side bug, so I hope Mailpoet will fix it also!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @check2020de The “report this topic” link is only for reporting spam and abuse. It’s not a “get support” link.

    Are you reporting yourself as a spammer or abused…? I’m pretty sure you’re not.

    Any feedback from mailpoet?

    I pushed it into the WordPress Core development. With Gutenberg 7.4 and WordPress 5.4 it will be fixed (fix is allready done, but not released). Gutenberg 7.4 is sheduled for February, 12 and WordPress 5.4 for March

    https://github.com/WordPress/gutenberg/issues/19898

    However, it’s not 100% correct how Mailpoet uses unicodes.

    • This reply was modified 1 month, 3 weeks ago by check2020de.
Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.