Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Internal Character Encoding

    I hope this is a simple questions.

    Using Zencart 1.5 with my databases set to UTF-8. However, when I run:

    echo mb_internal_encoding();

    it returns ISO-8859-1 ???

    Have I missed something in either configuration or installation? Shouldn't this return UTF-8?

    Thanks!
    Chadd

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

    Default Re: Internal Character Encoding

    Quote Originally Posted by chadderuski View Post
    Using Zencart 1.5 with my databases set to UTF-8.
    That's database.
    Quote Originally Posted by chadderuski View Post
    However, when I run:

    echo mb_internal_encoding();

    it returns ISO-8859-1 ???
    That's PHP.

    They're different.
    .

    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
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Internal Character Encoding

    Yes, I do understand that. However, I thought Zencart 1.5 was moving to UTF8 to be more compatible with multi-byte languages.

    Is there a reason why I would not want to set mb_internal_encoding(UTF-8)?

    Thanks!

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

    Default Re: Internal Character Encoding

    If you're using mb_ functions then you might want to set that.
    At this point Zen Cart doesn't use those functions (good or bad), so setting it is basically moot.
    .

    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.

  5. #5
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Internal Character Encoding

    Quote Originally Posted by DrByte View Post
    If you're using mb_ functions then you might want to set that.
    At this point Zen Cart doesn't use those functions (good or bad), so setting it is basically moot.
    Thank you! That's very encouraging!

    I am finally getting some folks that need multi-byte support for their native languages for my EasyPopulate 4. Some of my error detection was balking over their data... I didn't have any good sources for testing this myself, stuck on English as I am!

    Thanks for the Help and clarification!

 

 

Similar Threads

  1. Spanish / Norwegian Character Encoding
    By Bazzatastic in forum Addon Language Packs
    Replies: 2
    Last Post: 25 Jul 2013, 09:40 PM
  2. Encoding issue
    By Luxifer in forum General Questions
    Replies: 0
    Last Post: 26 Oct 2010, 08:18 PM
  3. Character encoding in text field
    By kuba1 in forum Bug Reports
    Replies: 2
    Last Post: 29 Jan 2009, 06:55 AM
  4. w3.org html validator error - no character encoding found
    By foteek in forum General Questions
    Replies: 2
    Last Post: 10 Jan 2009, 06:05 AM
  5. Encoding issiues
    By mish in forum Addon Language Packs
    Replies: 2
    Last Post: 11 Sep 2007, 09:58 AM

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