Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default Multibyte functions usage

    I would raise a problem.
    As 1.5.0 is UTF-8 by default, would it be more correct to use everywhere the mb_xxx PHP functions ?
    Ex: mb_strlen() instead of strlen(), mb_sent_mail(), ...etc.
    Ive done a global search with 'mb_' on source which gives no result.

  2. #2
    Join Date
    Jan 2004
    Posts
    65,307
    Blog Entries
    7
    Plugin Contributions
    228

    Default Re: Multibyte functions usage

    Probably. But at the present time it does not use those functions. Unfortunately there are many webservers which don't have proper support for mb_ functions.

    Changes will be made in v2 for more efficient multibyte support.
    .

    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
    Jun 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default Re: Multibyte functions usage

    If you consider strlen() (often used through ZC) and if string has some utf8 special characters then it returns wrong value, because those special characters will take more bytes.

    OpenCart for example use UTF-8 and has its own internal library of utf8_xxxx() functions equivalent to the mb_ functions.

    We are waiting v2 since a long long time...
    Last edited by gob33; 8 Feb 2012 at 01:05 AM.

  4. #4
    Join Date
    Jan 2004
    Posts
    65,307
    Blog Entries
    7
    Plugin Contributions
    228

    Default Re: Multibyte functions usage

    Quote Originally Posted by gob33 View Post
    If you consider strlen() (often used through ZC) and if string has some utf8 special characters then it returns wrong value, because those special characters will take more bytes.
    Understood.
    .

    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.

 

 

Similar Threads

  1. v151 Invalid multibyte sequence in argument???
    By inovermyhead in forum Basic Configuration
    Replies: 4
    Last Post: 1 Mar 2014, 01:07 AM
  2. Replies: 2
    Last Post: 20 May 2013, 04:09 AM
  3. Invalid multibyte sequence error
    By swguy in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 25 Aug 2012, 07:57 PM
  4. Yourpay issue with foreign multibyte characters
    By barco57 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 8 Apr 2007, 05:18 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