Forums / Upgrading from 1.3.x to 1.3.9 / � - Can't figure out how to remove

� - Can't figure out how to remove

Locked

Started by thehiprose on 23 Oct 2010, 10:26 PM · Views: 1,362

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Oct 2010, 10:26 PM
#1
thehiprose avatar

thehiprose

New Zenner

Join Date:
Jun 2010
Posts:
7
Plugin Contributions:
0

� - Can't figure out how to remove

I have � on all my text pages.

My MySQL charset: UTF-8 Unicode (utf8)

My english.php is

// look in your $PATH_LOCALE/locale directory for available locales..
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

How do I fix this please????

Thanks
Amanda

http://ellaandjaks.com/shop/

23 Oct 2010, 10:39 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: � - Can't figure out how to remove

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Oct 2010, 7:25 AM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: � - Can't figure out how to remove

If you are storing and retrieving your text as UTF-8, then your webpages have to use that encoding too. They dont, they are still set to 8859.

Try this

@setlocale(LC_TIME, 'en_US.utf8');

and also look at these threads for background info:

http://www.zen-cart.com/forum/showthread.php?t=93439

http://www.zen-cart.com/forum/showthread.php?t=133111

regards
Steve

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...