Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

greek 5&# os v2.2 problem :S


monokou

Recommended Posts

  • 1 month later...

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...

Link to comment
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

Link to comment
Share on other sites

  • 5 months later...

Goodmorning,

 

I have a similar problem with greek characters in categories box. I am placing a link to my site to see what I get in Greek language.

http://www.ora-anastasio.gr/index.php?language=el

please tell me if there is a way to fix this?

Ps. This happened after I have moved my site in a different host. Thank you in advance for any help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...