Post by lordcoffee » Tue Sep 25, 2007 5:26 am

HI!

Opencart is a really nice peace of software, but ...  :) I've trouble with the encoding and the special characters (german: Umlaute). My Server supports ISO-8859-1 and utf-8 but all special chars
are "ugly". See Screenshots here:

http://www.taeglichanders.de/linked/encodingprob.jpg[/img]

Thanks for any help and greetings,
Lordcoffee

Newbie

Posts

Joined
Tue Sep 25, 2007 5:14 am

Post by nde » Tue Sep 25, 2007 7:23 am

I had the same issues. I think your host set php to serve pages as ISO-8859-1 as default, overiding the HTML document declaration (and even though it might support UTF-8). See the following thread and comment:
http://forum.opencart.com/http://forum. ... 1267#p1267


Daniel:
maybe you should read the codepage setting and insert it into the headers as well. not only in the language files?

nde
New member

Posts

Joined
Sat Jun 30, 2007 7:32 am

Post by shadowframe » Mon Oct 15, 2007 2:50 am

Hi, i did translate the Version 0.7

the name of the language at attachment is english, because i only use the german language and use the english admin.

HowTo:


1.
Go in the backend

Admin/configuration/localisation/Language

use only one language with the following settings:

Languagjavascript:void(0);e Name: English
Code: en
Image: de.png ;)
Directory: english
Filename: german.php (because in the attachment u see the german.php)

2.

Duplicate admin/language/english/english.php and rename it to german.php

3.

open index.php and admin/index.php
after <?php insert: header('Content-Type: text/html; charset=utf-8');

4. ready

Newbie

Posts

Joined
Mon Oct 15, 2007 2:38 am

Post by gary » Sun Nov 18, 2007 10:13 am

how to solve strange characters in zones list? I tried inserting header - it has no effect on zones. Moreover - I checked cached version of zones - they also have strange characters.
Last edited by gary on Wed Nov 21, 2007 2:44 am, edited 1 time in total.

New member

Posts

Joined
Sun Nov 04, 2007 11:55 pm

Post by gary » Wed Nov 21, 2007 2:45 am

if you look in live shops section - those that did not restrict location - all have strange characters in zones list. Just try to go to account/create new then select Sweden and look at zones.
How to fix it?

New member

Posts

Joined
Sun Nov 04, 2007 11:55 pm

Post by gary » Mon Dec 03, 2007 11:26 pm

ok - here is an update for you.

in library/database/database.php - in connection function there is a line that sets utf-8 character set for the connection duration. It seems like it is an overkill - since pages are already set to be displayed as utf-8. Also - database is also already set to store utf-8.
When I commented it out - I was able to enter foreign language characters - and they showed up correctly. Also - zones fixed themselves. Euro and pound characters showed up incorectly - but once I re-entered them from the admin interface - they also showed up correctly.

So I wasted my yesterday to solve this. Hope someone will thank me ;)
Last edited by gary on Mon Dec 03, 2007 11:28 pm, edited 1 time in total.

New member

Posts

Joined
Sun Nov 04, 2007 11:55 pm

Post by stevends » Tue Apr 22, 2008 1:01 pm

THANKS GARY SO MUCH...

Newbie

Posts

Joined
Wed Apr 16, 2008 4:27 pm
Who is online

Users browsing this forum: No registered users and 1 guest