skip to Main Content

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/

2

Answers


  1. Chosen as BEST ANSWER

    I've tried it but it doesn't work This is the code in the file contact-2.php

    <?php 
    require 'PHPMailer-master/PHPMailerAutoload.php'; 
    $mail = new PHPMailer(); 
    $mail->CharSet = 'UTF-8'; 
    

    Do I have to add anything else in other files? I'm not sure in which file I have to make changes, that's why I've posted the link with the example and all files can be downloaded. Thank you!


  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search