| Author |
Message |
|
Donatt
|
Post subject: how to configure encoding default? Posted: Sun Apr 08, 2012 7:39 am |
|
Joined: Sun Apr 08, 2012 7:36 am Posts: 2
|
|
How to configure encoding default?
|
|
 |
|
 |
|
Audrius
|
Post subject: Re: how to configure encoding default? Posted: Sun Apr 08, 2012 2:26 pm |
|
 |
| Project Manager |
Joined: Wed Nov 25, 2009 9:40 am Posts: 421
|
|
What do you want to configure? There's already two configuration options in ip_config.php for content and MySQL. Both are set to utf8.
|
|
 |
|
 |
|
Donatt
|
Post subject: Re: how to configure encoding default? Posted: Sun Apr 08, 2012 3:00 pm |
|
Joined: Sun Apr 08, 2012 7:36 am Posts: 2
|
Audrius wrote: What do you want to configure? There's already two configuration options in ip_config.php for content and MySQL. Both are set to utf8. Default UTF-8 but instead puts windows-1251
| Attachments: |

.jpg [ 314.72 KiB | Viewed 778 times ]
|
|
|
 |
|
 |
|
Audrius
|
Post subject: Re: how to configure encoding default? Posted: Sun Apr 08, 2012 6:31 pm |
|
 |
| Project Manager |
Joined: Wed Nov 25, 2009 9:40 am Posts: 421
|
|
Check the browser's configuration. It's maybe your browser makes that? Did you check with other browser?
Another option, check the collation of your database. What is it?
|
|
 |
|
 |
|
maskas
|
Post subject: Re: how to configure encoding default? Posted: Mon Apr 09, 2012 7:38 pm |
|
 |
| Project Developer |
Joined: Tue Apr 28, 2009 9:43 am Posts: 1720
|
|
Yes. The most common reason is wrong database collation. It should be uft8_general_ci
|
|
 |
|
 |
|
Audrius
|
Post subject: Re: how to configure encoding default? Posted: Wed Apr 11, 2012 6:08 pm |
|
 |
| Project Manager |
Joined: Wed Nov 25, 2009 9:40 am Posts: 421
|
|
One more thing. Try to create a Russian language and try how it works then. Currently you're using English language configuration for Cyrillic alphabet. This could be the issue.
Tell how it goes.
|
|
 |
|
 |
|
maskas
|
Post subject: Re: how to configure encoding default? Posted: Wed Apr 11, 2012 8:29 pm |
|
 |
| Project Developer |
Joined: Tue Apr 28, 2009 9:43 am Posts: 1720
|
|
I see, that your hosting sets windows-1251 encoding into header. ImpressPages CMS does not override default hosting settings. But you can do it by your self:
Solution 1 (easier):
open ip_config.php file and use default PHP "header" function to override your hosting setting.
Solution 2 (nicer):
create your own plugin with system.php file. Put the same header function into init method.
|
|
 |
|
 |
|