Jump to content
Larry Ullman's Book Forums

CRG

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by CRG

  1. Many thanks to those who have responded.

     

    I converted the mysql collation to utf8 general, added the meta http-equiv content to charset urf-8 and placed the code

     

    if (preg_match('/^[A-Za-z\x{00C1}\x{00C8}\x{00C9}\x{00CA}\x{00E1}\x{00E8}\x{00E9}\x{00EA} \'.-]{2,40}$/u',$trimmed['last_name']))

     

    This worked and accepted the match. So far so good.

     

    But when I looked at the mysql db, the word Carré had been stored as CarrĀ©

     

    Where did that come from?

  2. Thanks to this book I have got a multiple access mailing list database ready to go, subject to the ISP server being updated.

     

    Before it goes live, I have to deal with accents. Being just off the coast of France, many names have é ê ë etc and the pregmatch facility listed in chapter 16 throws these out completely.

     

    I am assuming that our Canadian friends must have already addressed this problem, so I hope someone will be able to supply a pattern match that will allow e and a with accents to be approved.

     

    Colin

×
×
  • Create New...