This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Eugene Ternavsky
Eugene Ternavsky

Hello! I have a problem with charset in plugins. When I save my data in non-english lang and go to edit page next time I got gibberish in form edit fields. Let me show example with RainLab User plugin step by step (other plugins works the same way): Saving user Alt text It's ok in list Alt text And gibberish when edit again: Alt text Firefox info about page says that page encoding is "windows-1251" and it should be "utf-8". Alt text

Please help to solve this problem. I guess problem can have two reasons. First: some file saved in non-utf8 encoding. (We need re-encode it) Second: we get data from db in wrong encoding because db connection has non-utf8 encoding. (We need add something like mysql_query("SET NAMES 'utf8'"); and mysql_query("SET CHARACTER SET utf8 "); in code) But I cant find where to fix it in system files. Hope developers help and fix this.

Eugene Ternavsky
Eugene Ternavsky

Problem was solved by configuring webserver Apache with Default Charset utf-8. Closed.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.