How do I convert Word smart quotes and em dashes in a string?

前端 未结 13 1702
星月不相逢
星月不相逢 2020-11-29 03:11

I have a form with a textarea. Users enter a block of text which is stored in a database.

Occasionally a user will paste text from Word containing smart quotes or em

相关标签:
13条回答
  • 2020-11-29 03:48

    You have to manually change the collation of individual columns to UTF8; changing the database overall won't alter these.

    0 讨论(0)
提交回复
热议问题