This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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 It's ok in list And gibberish when edit again: Firefox info about page says that page encoding is "windows-1251" and it should be "utf-8".
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.
Problem was solved by configuring webserver Apache with Default Charset utf-8. Closed.
1-2 of 2