Author Topic: sanitize_mb  (Read 1841 times)

Nightborn

  • Administrator
  • Sr. Member
  • *****
  • Posts: 320
  • Karma: +20/-0
    • View Profile
    • Shinobilegends
sanitize_mb
« on: July 02, 2012, 05:59:13 am »
... is kind of a workaround to fix the endless module/core issue of breaking up a non-latin name with str*-functions instead of mb_str* functions.

Problem is the database :) even if you make it UTF, it still calculates field values in bytes. Hence the DB will break it up, if you do not check for the correct size.
It should be fixed, but it won't be easy and it won't be fast. If you want
to help - wonderful. But keep in mind that it will take months of wading
through the ugliest code we have in the tree. If you've got a weak stomach -
stay out. I've been there and it's not a nice place.

   - Al Viro