Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / strange characters above header & narrow page

strange characters above header & narrow page

Locked

Views: 1,629

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
17 Jun 2009, 3:51 PM
#1
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

strange characters above header & narrow page

Hi,

Using 1.3.8. url is https://www.herbschina.com.

Problem 1: using three column page which shows up very narrow. As I open browser window to the widest the margins on left & right get wider but page content does now spread.

Problem 2: strange characters  appear in upper left corner above "home" link. Have tried to find this in numerous english & template files but still don't see where they are coming from except:

Source view shows these characters just below   <div id="mainWrapper">   


<div id="mainWrapper">  only appears in the file " /home/herbschi/public_html/zen/includes/templates/template_default/common/tpl_main_page.php "

 When I look at this file I don't see these characters after    <div id="mainWrapper"> or anywhere else on the page.

HELP, Please someone

17 Jun 2009, 4:49 PM
#2
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: strange characters above header & narrow page

OK, while waiting for help I figured out which stylesheet has the width problem and changed it for a full width page.

BUT still show the strange characters.

17 Jun 2009, 6:15 PM
#3
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: strange characters above header & narrow page

Thats a UTF8 Bom , has been added to your file by your editor .. turning UFT8 encoding in your editor might show that character while editing a file . don't use UTF8 encoding when editing zen files.

to locate that , use developer tool kit to see which file actually got this.

17 Jun 2009, 7:55 PM
#4
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: strange characters above header & narrow page

OK, since i'm totally uneducated about UTF8:

1- I used Dreamweaver MX. How do I turn UTF8 off.

2- Dev tool kit showed these characters on line "0" ?????????? what is line "0" and how do I deleted or edit it??????????

17 Jun 2009, 8:24 PM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: strange characters above header & narrow page

im not sure about dreamweaver .. but developer tool kit also show you the file in question ..
simply download the file and open it in notepad , those characters usually inserted at a very beginning of a page before any text or any start of code .

19 Aug 2009, 8:54 AM
#6
addvant avatar

addvant

New Zenner

Join Date:
Aug 2005
Location:
NJ, USA
Posts:
35
Plugin Contributions:
0

Re: strange characters above header & narrow page

Have similar issue - Above EZ-Pages only
The following characters: "�" are shown above the store header within a PHP code: "��<�?�p�h�p� �" and more.
Search on developer kit didn't find the characters above.
Using 1.3.8a with Hebrew UTF8, with English it show correctly.
here is page address:
http://www.addvant.co.il/index.php?main_page=page&id=10

Thanks
AddVant.co.il

19 Aug 2009, 10:48 AM
#7
addvant avatar

addvant

New Zenner

Join Date:
Aug 2005
Location:
NJ, USA
Posts:
35
Plugin Contributions:
0

Re: strange characters above header & narrow page

Ok, Found out what was the issue of:

AddVant:

Have similar issue - Above EZ-Pages only
The following characters: "�" are shown above the store header within a PHP code: "��<�?�p�h�p� �" and more.
here is page address:
http://www.addvant.co.il/index.php?main_page=page&id=10

File at /includes/languages/hebrew/page_3.php has the UFT8 BOM. Also this file was not in use it still effected. saved new file without BOM and problem disappeared.

Thanks for inspiration!
AddVant.co.il