WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] non-utf8 character encoding: posts ok, comments not (4 posts)

  1. voivoed
    Member
    Posted 5 years ago #

    Hi,

    I moved my blog from MT to WP and have some issues. The character encoding for the database is latin1 (ISO-8859-1) and the blog is written in Portuguese, which uses accented characters (like "á" or "ê").

    I modified the character encoding in the blog settings (under settings/reading/encoding for pages and feeds) to "ISO-8859-1" and all the old posts appear fine. Any *new posts* that I create also appear fine.

    Comments, though, are being displayed in utf8. If I look in the database, they seem to have been saved in the wrong character encoding (when I change the character encoding in the browser to utf8, the posts display wrong but the comments then display ok). If I edit a comment using the dashboard, the edited comment is saved correctly and displays fine afterwards.

    How do I change the character encoding for the comments?

    Thanks!

  2. moshu
    Member
    Posted 5 years ago #

    Did you try to switch to a different theme? Just temporarily, to test.

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    This might help:
    http://codex.wordpress.org/Converting_Database_Character_Sets

    Basically, you want to convert the tables to all be in the same sets and such. Really, I'd try converting everything to UTF-8. Everything tends to work when you do that.

  4. voivoed
    Member
    Posted 5 years ago #

    Ok... I changed the setting in the blog (settings/reading/encoding for pages and feeds) to UTF-8 and now everything works, with the exception of the last few comments posted.

    I don't understand why it should, being that the database tables are using latin1 as their character encoding and the old posts where entered like that.

    But it is working, so I guess this issue is solved... for now! Thanks everybody! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic