lua-resty-mysql
lua-resty-mysql copied to clipboard
When i insert some emoji into mysql, they change to ???
My server chatsert is utf8mb4, and also i query "set names 'utf8mb4'" after connect
@iooly Recheck every link in your data flow (from web browser, to nginx, to mysql, to mysql database and tables, and backward) and ensure the same charset is used upon every link. Failures to ensure that can result in "???". I'm pretty sure this library works with multi-byte characters like UTF-8.
Mind you, MySQL is hairy in encoding settings and different layers may use different charsets. Please consult the your MySQL server's manuals for details on getting charsets right.
thanks, i will check those carefully.