PHP and Russian Letters

前端 未结 3 1086
情话喂你
情话喂你 2021-01-20 15:40

What is happening with Russian letters when sending via PHP request to ... a mail, by e.g.? the \"hardcoded\" russians letters are displayed properly, but from the Form\'s t

3条回答
  •  無奈伤痛
    2021-01-20 16:33

    Check your encodings:

    1. HTML encoding (in the tag)
    2. PHP/HTML/template file encoding (what encoding your editor saves the file in)
    3. Database encoding (if applicable) (in what encoding the data in the tables is in)
    4. Database connection encoding (if applicable) (what encoding is used for database connections)

    and use UTF-8 for everything.

提交回复
热议问题