php - French accented characters decode for SQL matching -
i'm having problem matching against french accented characters (note other different characters such chinese, japanese used).
i've ran across error when input french street name check database , had error:
incorrect string value: '\xe2teau' column 'street_name' @ row 1
for character in name:
le château
i've changed column utf8_general_ci
, still throws me error. how can "decode" them match against column?
are sending utf-8 data, or sending latin-1 encoded data? mysql may choking on âte
because â
being transmitted byte e2
, expects byte suitable value come next, sees 74
t
instead. string not valid utf-8.
try using utf8_encode()
on string value before creating query?
Comments
Post a Comment