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   3293 Views

Avatar
joninjas

Community Member, 32 Posts

4 December 2009 at 1:04pm

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

Community Member, 32 Posts

5 December 2009 at 12:10pm

problem solved

Avatar
HanSolo

Community Member, 83 Posts

21 January 2010 at 3:54am

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

Community Member, 32 Posts

6 February 2010 at 7:34am

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

Community Member, 32 Posts

12 February 2010 at 2:17pm

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

Avatar
Solo

Community Member, 32 Posts

12 February 2010 at 3:36pm

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

Community Member, 323 Posts

13 February 2010 at 6:22am

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

Community Member, 32 Posts

13 February 2010 at 3:51pm

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