Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[SOLVED] Tagcloud: Umlaute / Special Characters


Go to End


3 Posts   2067 Views

Avatar
derralf

Community Member, 28 Posts

12 August 2010 at 3:13am

Edited: 12/08/2010 3:32am

The tag cloud widget wouldn't display my special characters (German Umlauts such as ä,ö,ü) though all templates are utf-8.
To fix this, go to /blog/code/widgets/TagCloudWidget.php and in Line 56:

replace:
$theseTags = split(" *, *", strtolower(trim($entry->Tags)));
with
$theseTags = split(" *, *", mb_strtolower(trim($entry->Tags)));

Aside from the tagcloud widget there was yet another function/module/place where i had to replace strtolower recently. But i forgot. Maybe it was a custom limitCharacters function. Anyway. Maybe it's a hint for resolving garbled umlauts that appear on other places.

Avatar
vr

Community Member, 9 Posts

1 November 2010 at 11:01am

Thanks Ralf, you made my day ;-)

cheers, vr

Avatar
Willr

Forum Moderator, 5523 Posts

1 November 2010 at 5:45pm

derralf good note - this should probably be changed in the module so if it hasn't been raised yet make a ticket on open.silverstripe.org for the blog module.