Jump to:

23450 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » character set

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 1921 Views
  • Solo
    Avatar
    Community Member
    32 Posts

    Re: character set Link to this post

    Ok, i found the answer here http://www.silverstripe.org/general-questions/show/258497#post258497, but i cases only new pages, the old ones, now all have the wrong letters, and have to rebuild.

  • Solo
    Avatar
    Community Member
    32 Posts

    Re: character set Link to this post

    At least tag cloud didn't work correctly, and a whole blog too, i thing that every module need to be extended that way, mayby there is more elegant solution?

  • carlos
    Avatar
    Community Member
    41 Posts

    Re: character set Link to this post

    Hi Solo

    sorry I forgot to add the class

    class MySQLUnicodeDatabase extends MySQLDatabase {
       
       public function __construct($parameters) {
          parent::__construct($parameters);
          mysql_set_charset('utf8'); // We can't get access to dbConn, but we don't have to, since it's going to be the most recent one created.
       }
    }

  • Solo
    Avatar
    Community Member
    32 Posts

    Re: character set Link to this post

    Thanks for your help, but i didn't understand how to use it, it didn't work if sets only in _conf. Another one solution is here http://open.silverstripe.org/ticket/2377, but it didn't have effect on extensions, like blog. What a fk(((

    1921 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.