FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 7 posts ] 
 
Author Message
 Post subject: how to configure encoding default?
 Post Posted: Sun Apr 08, 2012 7:39 am 
Offline

Joined: Sun Apr 08, 2012 7:36 am
Posts: 2
How to configure encoding default?


Top 
 Profile  
 
 Post subject: Re: how to configure encoding default?
 Post Posted: Sun Apr 08, 2012 2:26 pm 
Offline
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.


Top 
 Profile  
 
 Post subject: Re: how to configure encoding default?
 Post Posted: Sun Apr 08, 2012 3:00 pm 
Offline

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
.jpg [ 314.72 KiB | Viewed 778 times ]
Top 
 Profile  
 
 Post subject: Re: how to configure encoding default?
 Post Posted: Sun Apr 08, 2012 6:31 pm 
Offline
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?


Top 
 Profile  
 
 Post subject: Re: how to configure encoding default?
 Post Posted: Mon Apr 09, 2012 7:38 pm 
Offline
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


Top 
 Profile  
 
 Post subject: Re: how to configure encoding default?
 Post Posted: Wed Apr 11, 2012 6:08 pm 
Offline
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.


Top 
 Profile  
 
 Post subject: Re: how to configure encoding default?
 Post Posted: Wed Apr 11, 2012 8:29 pm 
Offline
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.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 7 posts ] 

Board index » Development » Help requests


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron