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.

Blog Module

Discuss the Blog Module.

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

Tag Cloud in Blog Module shows ? instead of ä, ö, ü


Go to End
Reply

12 Posts   3179 Views

Avatar
joninjas

4 December 2009 at 1:04pm Community Member, 32 Posts

Hi all,

My blog is working well but the tag cloud widget shows question marks instead of ä, ö and ü. Because I use it in german language I depend on those characters. It seems like utf8 isn't read correctly from the database.

In the blog itself ä, ö and ü are shown correctly.

Thanks for your help!
Jonas

Avatar
joninjas

5 December 2009 at 12:10pm Community Member, 32 Posts

problem solved

Avatar
HanSolo

21 January 2010 at 3:54am Community Member, 83 Posts

How did you solve it? I have the same problem since a couple of months and tried everything but cant find a solution to the problem

Joakim

Avatar
joninjas

6 February 2010 at 7:34am Community Member, 32 Posts

Could it have something to do with that?

http://silverstripe.org/blog-module-forum/show/257046

or see the file attached, could help. can't remember really...

Cheers
Jonas

Avatar
Solo

12 February 2010 at 2:17pm Community Member, 32 Posts

I have the same problem, how do you solved it?

Avatar
Solo

12 February 2010 at 3:36pm Community Member, 32 Posts

The problem is that the blog module have its own connection to the database instead of using sapphire connection, like a forum module. So it don't work properly on the languages except English.

Avatar
Juanitou

13 February 2010 at 6:22am Community Member, 323 Posts

Hi!

The Blog module has indeed some problems with non-English languages. I had to use some htmlentities() for the Archive widget and the following change in line 55 of TagCloudWidget.php:

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

Also, try to save your templates in UTF8 without BOM.

Hope it helps,
Juan

Avatar
Solo

13 February 2010 at 3:51pm Community Member, 32 Posts

No, it's SilverStripe have problems with non-English languages. It problem can be solve http://open.silverstripe.org/ticket/2377, but not for the blog module, so if i set the $this->query("SET CHARACTER SET 'utf8'"); $this->query("SET NAMES 'utf8'"); in sappire. it takes no effect on blog module, guess this problem soved in 2.4.0 version of ss.

Go to Top