Forums

[Plugin: Contact Form 7] mojibake in name field only (5 posts)

  1. hubbiida
    Member
    Posted 7 months ago #

    Hi,
    I am using Contact Form 7 for a site displaying all Japanese. Since I am an English speaker, however, I have used an English version of WP to make the site. In order to display the Japanese correctly I have the site charset set to shift-jis. If I try UTF-8, the Japanese will not display at all. I also have a Contact Form 7 form on the site. This transmits Japanese fine, except for the name field, which always arrives as mojibake. If I switch the site charset to UTF-8, the Japanese in the posts, pages, etc. becomes unreadable, but the problem with the form is solved. I see that Contact Form 7 is set to UTF-8 and guess this is the problem. But what can I do to deal with these mojibake, since I can't use UTF-8 for my site? Any ideas will be much appreciated.
    Andrew

  2. Takayuki Miyoshi
    Member
    Posted 7 months ago #

    You don't need to use Shift-JIS. UTF-8 should work for Japanese. Most Japanese sites use UTF-8 without any trouble. You may have another problem if you can't make it work.

  3. hubbiida
    Member
    Posted 7 months ago #

    Many, many thanks for the fast reply. I shall look into what might be causing the problem with UTF-8. Meanwhile, is there any easy way to switch Contact Form 7 to shift-jis?
    Best,
    Andrew

  4. Takayuki Miyoshi
    Member
    Posted 7 months ago #

    Contact Form 7 doesn't depend on any specific encoding. It should work with Shift-JIS as well.

  5. hubbiida
    Member
    Posted 7 months ago #

    Well, as I said, when I switch WP to UTF-8 the mojibake go away, so it seems to have some effect. But again, for some reason only the name field is messed up. I'll look into switching the site to UTF-8. Thanks for your help.

Reply

You must log in to post.

About this Topic