nttcar Posted June 2, 2011 Share Posted June 2, 2011 Hi does anyone know where I need to look, my main page for English got special character( ) on the left and right side , which script I need to check Top » Catalog My Account | Cart Contents | Checkout  Quick Find Quick Find Advanced Search Categories -> (22) (1) (1) AlacerEmergen-C (1) Badminton-> (8) Caltrate (4) Centrum-> (10) Computer Accessory (1) GNC Vitamin-> (85) GrapeSeed (18) Johnson (1) Kids & Teens Vitamins (13) Kirkland (8) Lego 樂高玩具 Member's Mark (16) Natrol (8) Nature Made-> (13) Nature's Bounty (4) Nature's Way (8) NewChapter (4) Nivea (4) NOW-> (19) NSI (1) One1ADay (3) OtherVitamin (5) Schiff (6) Smart Care (1) SpringValley (8) Theragron-M (1) TruNature (2) Walgreens (3) å¬°å…’ç”¨å“ (1) 幫妳買化å¦å“-> (19) Baush&Lomb (1) Manufacturers Please SelectAmerican BeautyCanonCentrum美安FlyPowerGarnerGNCgood skinhealthfromthsunJohnsonKirklandMember's MarkNaturalfactorsNature MadeNature's WayNewChapterniveaNOWNSIRene FurtererschiffSpringValleyStIves SwissTruNatureVaselineVictorWalgreensYonex What's New? SUPER WAVES 36 $165 $150.03 Information Shipping & Returns Privacy Notice Conditions of Use Q&A Contact Us ATM Info Link to comment Share on other sites More sharing options...
germ Posted June 2, 2011 Share Posted June 2, 2011  Quick Find That garbage means you've saved a file in UTF-8 encoding with the Byte Order Mark. Needs to be ASCII encoding. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted June 2, 2011 Share Posted June 2, 2011 Some editors will let you save as UTF-8 without the BOM. The BOM is the problem. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
MrPhil Posted June 3, 2011 Share Posted June 3, 2011 You'll have to examine all your .php files for those three characters as the very first characters in those file(s). If you have only N showing up, maybe you'll be lucky and have only N or fewer files to fix. Throw away your Microsoft editors and word processors that you (or someone) used to edit files. Get a decent programmer's editor such as ViM or Notepad++ and use that. What happened is that you were editing with your PC somehow in UTF-8 encoding, and Microsoft likes to be your little helper and add the BOM at the beginning of any file it edits. Note that if your PC and/or editor is already in UTF-8 mode that the BOM may well be invisible to you! Some editors can be told to save a file with or without a BOM. Unfortunately, there is no easy way to bulk search for this critter, short of learning esoteric tools such as "grep" and how to specify arbitrary hex codes for its search pattern. I see you have some odd text in other places. Perhaps you have some text that was entered in UTF-8 mode (and stored in the database), and cut and pasted it into a non-UTF-8 system at some point? Link to comment Share on other sites More sharing options...
nttcar Posted June 3, 2011 Author Share Posted June 3, 2011 Hi, The web site is Big-5 Chinese Characters, when I view the web site in Chinese I do not have any issue at all but If I switch to English version then it shows. I found the Character here is my index.php. I will try to save as ascii to see if solve my issue. </tr> </table> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <!-- search //--> <tr> <td> Link to comment Share on other sites More sharing options...
MrPhil Posted June 5, 2011 Share Posted June 5, 2011 Presumably your Chinese usage is UTF-8, while your English usage is Latin-1. From your HTML dump, it looks like catalog/includes/boxes/search.php may be the file that got the crap added at the beginning. Make sure that your PC and editor are in something other than UTF-8 encoding (character set) when trying to edit, or you won't see the characters at the very beginning of the file. Link to comment Share on other sites More sharing options...
nttcar Posted June 7, 2011 Author Share Posted June 7, 2011 Presumably your Chinese usage is UTF-8, while your English usage is Latin-1. From your HTML dump, it looks like catalog/includes/boxes/search.php may be the file that got the crap added at the beginning. Make sure that your PC and editor are in something other than UTF-8 encoding (character set) when trying to edit, or you won't see the characters at the very beginning of the file. I have try to save different kind of encoding and makre sure there is no special characters, by hit backspace but without any luck. here is the web site, any suggestion hxxp://www.usaasiatrade.com Thanks for any suggestion. Is my database got issue ? Link to comment Share on other sites More sharing options...
germ Posted June 7, 2011 Share Posted June 7, 2011 It's either in /includes/column_left.php or /includes/boxes/search.php I have a php file I've made that I was going to upload as a contribution to help with the infamous "headers already sent" error but I haven't yet. It will tell you which file it's in. I could post the code with a brief instruction on how to use it if you can't tell which file it's in. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
MrPhil Posted June 7, 2011 Share Posted June 7, 2011 On a Linux server, try running the following on the command line (e.g., SSH) or as a one-time cron job: grep -R $'\xEF\xBB\xBF' * That should list all files containing the BOM. grep is available for Windows, but I don't know if the syntax will be exactly the same. Link to comment Share on other sites More sharing options...
nttcar Posted June 8, 2011 Author Share Posted June 8, 2011 I try but it did not find anything unix> find . -name "*" -exec grep -i $"\xEF\xBB\xBF" {} \; unix> anything I type wrong Link to comment Share on other sites More sharing options...
nttcar Posted June 8, 2011 Author Share Posted June 8, 2011 It's either in /includes/column_left.php or /includes/boxes/search.php I have a php file I've made that I was going to upload as a contribution to help with the infamous "headers already sent" error but I haven't yet. It will tell you which file it's in. I could post the code with a brief instruction on how to use it if you can't tell which file it's in. Can you please post the code and instruction. Thanks a lot ! Link to comment Share on other sites More sharing options...
nttcar Posted June 8, 2011 Author Share Posted June 8, 2011 Thank you so much for everyone's help. I use notepad++ convert utf8-without BOM, it remove my special characters. Thank you so much . Link to comment Share on other sites More sharing options...
MrPhil Posted June 8, 2011 Share Posted June 8, 2011 find . -exec grep $'\xEF\xBB\xBF' {} \; might work better. Link to comment Share on other sites More sharing options...
labmais Posted November 7, 2011 Share Posted November 7, 2011 I had a similar issue. I made DB backup using PhpMyAdmin. Then I deleted the DB and restored it with .sql file. Where it had an accent before ( ~ ´ ^ ¨), now it shows a "?". The sql file still has all accents. What can I do? E-commerce? No external links please. Link to comment Share on other sites More sharing options...
labmais Posted November 7, 2011 Share Posted November 7, 2011 No more sorrows. I is solved the issue While importing the DB I has choice latin1 opcion. Thanks for attention E-commerce? No external links please. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.