WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] special characters after saving draft interpreted as ? (3 posts)

  1. nuthan
    Member
    Posted 1 year ago #

    I am trying to create posts in hindi language. These characters "UÉeÉMÑüqÉÉU" after saving/publishing are interpreted as "U�e�M��q��U". Though, the special characters are stored with no change in the mysql database. The � symbol is only during retrieving.
    I'm stuck here.

    I tried commenting these lines in wp-config.php. But none worked.

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'UTF-8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    Also, place mysql_query("SET NAMES utf8"); in wpdb class constructor of wp-db.php. Negative, even this didn't work

    How do i overcome this?

  2. nuthan
    Member
    Posted 1 year ago #

    Forgot to mention, I am not using default post editor. The post editor is modified to intake multiple visual editor wpalchemy Metabox
    Any ideas to resolve with � characters?

  3. nuthan
    Member
    Posted 1 year ago #

    Its utf-8 character encoding problem. Fixed it using the function utf8_encode():
    utf8_encode(html_entity_decode($mb->get_the_value()));

    P.S.Wpalchemy

Topic Closed

This topic has been closed to new replies.

About this Topic