Support » Plugin: WPNewsman Lite » Character corruption in custom forms labels and button

  • Resolved estepix


    Hi, first of all great plugin! It’s really usable and loaded with features.

    I’m currently using it in a Spanish website and I have found a problem with special characters codification, if you use special characters as in Spanish “ñ” or “é”, etc. they will appear wrong in the final generated form.

    I have temporarily fixed it by replacing the function htmlentities() with htmlspecialchars() in lines 84 and 224 of file wpnewsman-newsletters/class.form.php

    Here’s a git diff with the changes above:

    Will this be fixed in upcoming releases?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor neocoder


    Thanks for pointing to the bug and thanks for the fix although I need to make some checks to include it into the release. Could you tell me what php version you use, and what charset is on your pages? How do the characters look like after the wrong transformation?


    My php version:
    PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013 14:31:48)
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

    Charset: UTF-8

    The characters look like this:
    Teléfono – should be -> Teléfono
    Suscríbete – should be -> Suscríbete

    As for the database: utf8_general_ci

    This is the same setup I always use with no encoding problems so far.

    Plugin Author G-Lock Software


    Please check how it works in the latest version of the plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Character corruption in custom forms labels and button’ is closed to new replies.