Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

accented characters in two columns behave differently

$
0
0
I have a table cfr_person defined with many columns but two of interest (both using the default latin1_swedish_ci encoding):

NAME_LAST varchar(180)
NAME_FIRST varchar(80)

Insert or update a record with accented characters like this:

update cfr_person set NAME_LAST='Dummée',NAME_FIRST='Salé'

(in case they get mangled in this thread, the fifth character in last name and fourth character in first name are e-acute, \xe9)

When I select the line back through mysql connector, the last name works fine but the e-acute in the first name is turned into \xfffd. When I use a phpMyAdmin interface, the correct data shows up.

Does anyone know what would cause a character to be substituted on one column and not on another, and how I can stop the substitution?

Viewing all articles
Browse latest Browse all 13329

Trending Articles