We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE3 B3: issue with utf-8 encoding in tables

Developer Preview

Low's avatar
Low
407 posts
10 years ago
Low's avatar Low

When generating a table listing using the CP/Table service, I’m getting garbled text where there should be regular utf-8 characters like diacritics and curly quotes.

I’ve attached a screenshot of said behaviour in one of my add-ons. The data is fine in the database (collation/charset is utf-8) and the text displays fine using my old table views. When switching over to the CP/Table based views, the characters are garbled.

Thoughts?

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
10 years ago
Kevin Cupp's avatar Kevin Cupp

Thanks, Low. I’m unable to reproduce this, guessing it has to do with our different PHP configs. Can you try adding the encoding parameter to the htmlentities() calls in _shared/table.php? Should be lines 121 and 123:

<?=htmlentities($column['content'], ENT_QUOTES, 'UTF-8')?>
       
Low's avatar
Low
407 posts
10 years ago
Low's avatar Low

Yes, that helps. Thanks.

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
10 years ago
Kevin Cupp's avatar Kevin Cupp

Great, we’ll get it in the next build!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.