Text encoding in HTML text fields

Posted by joe on Stack Overflow See other posts from Stack Overflow or by joe
Published on 2010-04-18T16:05:42Z Indexed on 2010/04/18 16:13 UTC
Read the original article Hit count: 469

Filed under:
|
|

I have a site up that has a form on it. The form POSTs to a php script which then inserts the data into my database. The page has a charset=UTF-8 attribute in the <meta> tag, and the database is setup to use UTF-8. However, when I copy and paste characters from MS Word into the field, the output is messed up.

For example, the quotes in

I am using "Microsoft Word" ''''

become

I am using “Microsoft Word†????

in the database.

Anyone have any idea why this might occur?

© Stack Overflow or respective owner

Related posts about encoding

Related posts about html