Hello.
I have strange problem
I've made content type with field for AddThis->AddThis button.
If the field is OFF (not visible on content) everything is ok, but when I'm turning it on I've got this error below when/after visiting content with that filed.
In the teaser view I have turned off this field so no errors... but if I turn it ON... it's the same error but many times - because many teasers on front page (1 error for 1 content)
It doesn't matter if the view field is Basic Button or Basic Toolbox
Location http://totapodroz.pl/content/e <------- title after use of Transliteration from "ę" to "e"
Message Warning: htmlspecialchars(): Invalid multibyte sequence in argument in check_plain() (line 1670 of /var/www/vhosts/4/112314/webspace/httpdocs/totapodroz.pl/includes/bootstrap.inc).
EDIT:
I forgot about important thing. This error show on only when node title contain chars like: ąęśćżłó
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | fix-umlauts-2644044-6.patch | 543 bytes | merilainen |
Comments
Comment #2
totap commentedComment #3
totap commentedComment #4
totap commentedComment #5
totap commentedI have found the solution:
- open includes/bootstrap.inc
find your line:
Replace with:
Solution #13: https://www.drupal.org/node/1430166#comment-6647386
Comment #6
merilainen commentedSo maybe we have to use htmlspecialchars() instead of htmlentities()?
Comment #7
gisleThanks, mErilainen - it works!
Comment #9
gisleLooks like this now causes the entities to be double encoded.
Removing the encoding altogether (see related issue #2803109: Double htmlentities encoded) seems to have no adverse effects, but if you've experienced this bug in the past, please review latest snapshot of 7.x-4.x branch to see if the latest change to this function has resulted in a regression.
Comment #10
chrbak commentedHello,
I use the 7.x-4.0-alpha6 version and I have a title with Greek characters and the htmlentities() php function doesn't work correctly. I get at the popup share window of facebook a title with HTML entities e.g.
Δομή Παροχής Βασικών Αγαθών.I changed the php function to htmlspecialchars() and now it works.
Thanks