Thread: Going Nuts !

Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2011
    Posts
    39
    Plugin Contributions
    0

    Default Going Nuts !

    Hi this is my website:

    www.bh-init.com

    iv switched my language to utf-8 before it everything was fine.

    i have this problem when i switch to arabic language and click on account, ill get a blank page.
    http://bh-init.com/index.php?main_page=account

    iv did the debug and it told me i had proplem on line 1 on arabic.php which is the space before <php but there wasnt any space and iv edited in notepade++

    if i use my English language it works fine.

    also same problem occurs if i use search in arabic language.

    any idea what might be causing this? iv checked everything twice and nothing is wrong in my files no space or miss typed '

    iv changed my Arabic folder to English and verse to see if it was Arabic pack was causing the problem and turned out it didn't.. am completely lost right now

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Going Nuts !

    If you're using utf8, you MUST save all files as UTF8-without-BOM. If you don't set your editor to save "without BOM" then it'll insert extra invisible code that will cause problems.

    BOM = "Byte Order Mark" ... defined further in wikipedia etc if you've never heard of that before.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2011
    Posts
    39
    Plugin Contributions
    0

    Default Re: Going Nuts !

    Quote Originally Posted by DrByte View Post
    If you're using utf8, you MUST save all files as UTF8-without-BOM. If you don't set your editor to save "without BOM" then it'll insert extra invisible code that will cause problems.

    BOM = "Byte Order Mark" ... defined further in wikipedia etc if you've never heard of that before.
    OMG .. thank you so much.. i spent 4 hours trying to fix this problem.

  4. #4
    Join Date
    Nov 2011
    Posts
    39
    Plugin Contributions
    0

    Default Re: Going Nuts !

    am sorry to bother you again, after i solved this problem another one appeard.

    http://bh-init.com/index.php?main_page=index&cPath=16

    when i list products in admin it works fine and i can view the charcters . however if i go to the website and go to products and chose arabic language the product names will display as ??????? i have edited all my langauge files to be utf-8

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Going Nuts !

    Those ????? are coming from your product names and descriptions, not your language files.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Nov 2011
    Posts
    39
    Plugin Contributions
    0

    Default Re: Going Nuts !

    i had a simple mistake in my admin include

    my_db_charset.php it was utf8
    and on the other file was utf-8

    so i just made it utf-8 and it fixed it lol

 

 

Similar Threads

  1. Going nuts here
    By sandswillis in forum Installing on a Mac Server
    Replies: 5
    Last Post: 27 Feb 2011, 05:28 PM
  2. Going nuts..
    By KandKsMama in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Aug 2008, 11:38 PM
  3. Which Paypal to use? I'm going nuts?
    By bogie in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 3 Mar 2008, 09:42 PM
  4. Going Nuts-Java Menu
    By orenda in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Oct 2006, 10:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR