WPNewsman Lite
[resolved] Character corruption in custom forms labels and button (4 posts)

  1. estepix
    Posted 2 years ago #

    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


  2. neocoder
    Plugin Contributor

    Posted 2 years ago #

    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?

  3. estepix
    Posted 2 years ago #


    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.

  4. G-Lock Software
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic