WordPress.org

Ready to get started?Download WordPress

Forums

User Submitted Posts
[resolved] National characters not recognized for Autfor name (3 posts)

  1. ovidusss
    Member
    Posted 2 years ago #

    Hi, when user submit a photo, all text are encoded corectly just the name of the author when using special characters seem to be broken. How to solve this?

    http://wordpress.org/extend/plugins/user-submitted-posts/

  2. damneg
    Member
    Posted 1 year ago #

    replace in line 312 (version 1 of plugin)
    update_post_meta($newPost, $this->_post_meta_Submitter, htmlentities(($authorName)));
    to
    update_post_meta($newPost, $this->_post_meta_Submitter, htmlentities($authorName, ENT_QUOTES, "UTF-8"));

    this helped me with russian characters, this is because the function htmlentities default encoding is ISO-8859-1

  3. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    damneg looks correct, will implement this in the next update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.