简体   繁体   中英

special character mysql - convert to “?”

I want to put in my MySQL this word: xxvęrspIøgx

When I insert this word the result is: xxv?rspIøgx

What I have to do to support this character: ę ?

I would be best to encode the word into UTF-8 before storing the word, then decode it from UTF-8 after you fetch it from the database. This was elements of the word/data are not lost between transit and storage.

The source of your problem can be one of at least these two:

  1. Your data is not configured to UTF-8 Character Encoding,
  2. The input mechanism does not support UTF-8 (eg if command line us used, the "TERMINAL" was not configured.

Verify your DB configuration and make sure that the path (from your "client" interface and down till your "server" side are properly configured.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM