Jump to content
Sign in to follow this  
monokou

greek 5&# os v2.2 problem :S

Recommended Posts

Hello,

i am working with os commerce v2.2 . I have uploaded greek language but! on categories it shows for me ενδυμ why is that? how can I fix it? is there any code to add or change in any php?thank you a lot!

Share this post


Link to post
Share on other sites

Hello, even though noone answered me about the above question.. I'll give it a try with another problem... I have installed the osc 2.3.1... I have the greek language utf8... BUT in boxes the greek words don t appear and I see just ??????? I have enlarge the box via varchar but nothing happened... what is going wrong??? please help me so I can continue my work...

Thank you...

Share this post


Link to post
Share on other sites

Hello,

i am working with os commerce v2.2 . I have uploaded greek language but! on categories it shows for me ενδυμ why is that? how can I fix it? is there any code to add or change in any php?thank you a lot!

 

 

 

check your database fields (check the length of chars allowed) if it seems like its cutting off the last couple of chars then you need to increase the field char size in the database

 

and like george (mutlimixer) says, make sure if your editing files with an editor that they are saved at UTF8 ( i suggest dreamweaver personally)

 

something that might help aswell this is my includes/languages/greek.php language file

 

// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
@setlocale(LC_TIME, 'el_GR.UTF8');
mb_internal_encoding("UTF-8");
define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
 if ($reverse) {
   return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
 } else {
   return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
 }
}
// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'EUR');
// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="el"');
// charset for web pages and emails
define('CHARSET', 'UTF-8');

 

i have

@setlocale(LC_TIME, 'el_GR.UTF8');
mb_internal_encoding("UTF-8");

 

at the top as you can see and i have never had a problem with Greek chars


If it don't fit - Get a bigger hammer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×