surknight Posted August 31, 2013 Posted August 31, 2013 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 ). 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 ). 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 Quote
tgely Posted August 31, 2013 Posted August 31, 2013 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. Quote 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.
surknight Posted September 1, 2013 Author Posted September 1, 2013 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.