Post by vot » Thu Mar 13, 2008 10:25 pm

The shop pages displayed in wrong encoding some times.

The problem occured if you are using non-latin language for your shop and default browser codepage is non-latin too.

To solve the problem it is quite enough to add just one code line into index.php and admin/index.php files.
Below is the code (added lines are bolded):
// Output
$response->setHeader('Content-Type', 'text/html; charset=utf-8'); //added by vot
$response->output();

vot
Newbie

Posts

Joined
Sun Mar 09, 2008 3:11 am

Post by 3806 » Fri Jan 30, 2009 7:53 pm

I paste this one code line into index.php and as a result have received:

Warning: Cannot modify header information - headers already sent by (output started at /home/velomax/public_html/store/catalog/language/english/controller/home.php:12) in /home/velomax/public_html/store/library/environment/response.php on line 79

But in admin/index.php is Ok.

New member

Posts

Joined
Sat Nov 24, 2007 11:20 pm
Location - Ukraine

Post by Qphoria » Fri Jan 30, 2009 8:04 pm

What version of opencart are you using? This has been part of the core for some time now if you are using the latest version

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by hm2k » Fri Jan 30, 2009 9:32 pm

That's not how headers work...

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by 3806 » Mon Feb 02, 2009 9:59 am

Now I install v0.7.9 and work with cyrillic encoding :)

New member

Posts

Joined
Sat Nov 24, 2007 11:20 pm
Location - Ukraine
Who is online

Users browsing this forum: No registered users and 42 guests