0

I'm using this contact form https://bootstrapious.com/p/how-to-build-a-working-bootstrap-contact-form?utm_content=cmp-true

In English it works great, but the second language of the website is Cyrillic and I didn't succeed to configure it Only 'labels' work with Cyrillic, but I need the data from the <input..> to be received correctly from the mail.

Only 'labels' work with Cyrillic, but I need the data from the <input..> to be received correctly from the mail. /I'm using the second variant/

Ndnr
  • 1
  • I highly recommend [UTF-8 all the way through](https://stackoverflow.com/questions/279170/utf-8-all-the-way-through). You need to ensure you use UTF-8 in every single step of your application workflow. – Álvaro González Aug 07 '23 at 08:39

1 Answers1

0

PHPMailer allows you to set char encoding:

$mail = new PHPMailer();
$mail->CharSet = 'UTF-8';

Also be sure to save your PHP file using UTF-8 encoding without BOM.

Docs

MorganFreeFarm
  • 3,811
  • 8
  • 23
  • 46