[solved] striptagsandcut removes german "Umlaute"

More
12 years 1 month ago #23652 by mcmurdok
The function flexicontent_html::striptagsandcut removes german "Umlaute" like ö,ä,ü,ß...
It is e.g. used to shorten the introtext in universal module.

Regards

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #23690 by ggppdk
mmm, this can only happen if inside your text the characters are not in UTF-8 format but instead they are written as html entities e.g. they are written as ¶¤¼, it seems that your editor is not saving the characters in UTF-8 format, check editors configuration set set encoding to utf-8 or raw ???

Also in file components/com_flexicontent/classes/flexicontent.helper.php try this:

at the top of the function strip_tags() ,try putting:
// Convert entities to characters so that they will not be removed ... by strip_tags, excluding quotes (we want quotes removed)
$text = html_entity_decode ($text, ENT_NOQUOTES, 'UTF-8');

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #23691 by ggppdk
mmm, i committed this i hope it breaks nothing


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #23727 by mcmurdok
Thank you,
indeed it was the editor saving these characters as html_entities. I could switch it off in the editors plugin preferences

Regards

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.260 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline