Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

setup a utf-8 osc


ywkyee

Recommended Posts

Posted

Hello,

 

i would like setup a osc with utf-8 with additional traditional/simpified chinese language as well as english, so where can i find useful information how to setup it ?

 

eg i got a traditional languange pack, i knew to change includes/language/chinese.php

 

define('CHARSET', 'utf-8');

 

but what about those file type under includes/language/chinese subdir? all files are defined those chinese string, but it is saved as text file type, so if encoding method set to utf-8, it is displayed wrongly of those chinese string..

 

appreciate for any expret give me some hints about it.

 

many thanks/Davis.

Posted

also do i need to save chinese language pack file to utf-8 file type in order display it well? thanks/Davis.

Posted

Well I have no knowledge of the enormous Chinese language but I have converted a fork of osCommerce to UTF-8.

 

I would suggest that the language file you ensure are saved as UTF-8 and that when the chinese language is chosen that the html charset is also changed to UTF-8.

 

In addition see iconv and mb_string which are used (amongst other things) to change output, input and internal encoding.

Posted

hello,

 

thanks for your feedback.

 

yes, i tried changed those chinese language file saved as UTF-8, it is all fine to display in chinese...BUT...when render a page, there is always a "empty" space line on the top of each page, it look strange, which meant all my render page supposed display start from 0 x-axis and now all start from 10 x-aixs etc.

 

hope you can get what i meant..:)

thanks/Davis.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...