<?php
    $NameParent = $_POST['NameParent'];
    $phone = $_POST['phone'];
    $email = $_POST['email'];
    $NameStudent = $_POST['NameStudent'];
    $course = $_POST['course'];
    $class = $_POST['class'];
    
    $to = "yourmail@gmail.com";
    
    $subject="New Submition";
    $text = "NameParent:" . $NameParent . "\r\n Phone:" . $phone . "\r\n Email:" . $email . "\r\n NameStudent:" . $NameStudent . "\r\n course:" . $course . "\r\n Class:" . $class;
    
    if($email!=NULL){
        mail($to, $subject, $text);
    }
?>
I already tried to convert the string to UTF-8, but it doesn't seem to help. Any help would be appreciated as I am very new to php and I am not at all fluent at it yet. This is my code: