Menu

UTF-8 not work in messages

2017-02-14
2024-05-13
  • Olli Ovaskainen

    Olli Ovaskainen - 2017-02-14

    When you receive message in your email, what is sent via Contact Form you see that "ÖÄ" not shown correctly?
    I think UTF-8 not work??

    I Have modified this little and done Finnish translations.
    http://www.juuanmetsa-villet.fi/yhteystiedot/palautelomake/

    Also all required fields are not required!
    I add these in code:
    }
    if(strlen($Sub_ject) < 1) {
    $error_message .= "Aihe ei voi olla tyhjä.";
    }
    if(strlen($first_name) < 1) {
    $error_message .= "Nimi ei voi olla tyhjä.";
    }

     
  • Aron Smit

    Aron Smit - 2017-02-15

    Hello, Thank you very much for you help!
    This strings now included to the script
    if(strlen($Sub_ject) < 1) {
    $error_message .= "Empty field: Subject.";
    }
    if(strlen($first_name) < 1) {
    $error_message .= "Empty field: Name.";
    }
    Now it works with Unicode characters. $string = utf8_decode($string);

    before:

     

    Last edit: Aron Smit 2017-02-15
  • Olli Ovaskainen

    Olli Ovaskainen - 2017-02-16

    Hi,
    Do you only add that one line ($string = utf8_decode($string);) in code (sms_mail_notification.php)?
    I don´t know why, but that not work for me. Please see attached config.

     
  • Aron Smit

    Aron Smit - 2017-02-16

    i have made some changes with headers. file attached.

     

    Last edit: Aron Smit 2017-02-16
  • Olli Ovaskainen

    Olli Ovaskainen - 2017-02-16

    Perfect! now it works!!
    Thanks! :)

     
  • Aron Smit

    Aron Smit - 2017-02-16

    You are welcome :)

     
  • Rinat kazantsev

    Rinat kazantsev - 2024-05-13

    Ensure your text editor or platform supports UTF-8. Check for any encoding settings or configurations that might be causing the problem. If the issue persists, try using a different platform or encoding method. UTF-8 is widely supported, so compatibility problems are uncommon but can arise due to specific configurations or software limitations. I have same issue with Puff Print If you need further assistance, feel free to provide more details about your setup.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.