Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

French language pack encoding problem


surknight

Recommended Posts

I've installed the pack complet osCommerce2.3.3 (upgraded French language pack) on OSC 2.3.3 and am having an odd problem viewing the storefront. It mostly appears correctly, except for the last word in the 'New Products for August' line (see the attached Page with utf8 encoding.jpg post-323813-0-88471800-1377942580_thumb.jpg). If I change the encoding on the browser to Western European (Windows), the problem word in that line now appears as it should, but the rest of the page doesn't show properly (see second image post-323813-0-11673900-1377943769_thumb.jpg). How do I fix this? That final word (August) is actually being inserted by the %s variable defined in the index.php file and I can't figure out where %s is coming from or why it's not in utf-8 encoding.

 

The only other add-ons I've got installed are Theme Switcher 1.4.2 by kymation and Consolidated Login with Guest Checkout for 2.3.1 v1.2 by fulluvscents. Thanks for any help.

 

Roland

Link to comment
Share on other sites

This is server config problem. I use iconv conversion in general tep_date_long() return

 

something like this:

   return iconv('ISO-8859-2', CHARSET, strftime(DATE_FORMAT_LONG, mktime($hour,$minute,$second,$month,$day,$year)));

 

Of course ISO-8859-2 not will be good for you.

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

I actually found the problem in the setlocale in french.php, which was written out like this:

 

if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {

@setlocale(LC_TIME, 'fra');

}else{

@setlocale(LC_TIME, 'fr_FR.ISO_8859-1');

}

 

Once I got rid of the if-else statements and used only the ISO encoding the weird character mismatch went away. Thanks for the assist, I'll keep that in mind if I run into other problems.

 

Roland

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