WordPress.org

Forums

Contact Form 7
[resolved] Problem with UTF-8 or multi-tag in email Subject (4 posts)

  1. armin3000
    Member
    Posted 2 years ago #

    Hello,
    If I write text in UTF8 charset in subject field the form wouldn't send and a red error appears, but if I insert a tag which contains utf8 text it works!

    next problem: When I try ti put 2 tags in subject field it fails again. i.e. I've tried to insert this string as subject but it failed:
    [order_type] [sender_name]
    each of them works separately.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    Odd situation. Could you share the URL of the site? And what UTF-8 text exactly?

  3. armin3000
    Member
    Posted 2 years ago #

    I tried on two sites. How you can test it as a guest?!! I think there's a misunderstanding. subject field is not a field in output form, I mean the "subject" field in form creation panel.
    here's are some text examples in Persian language as constant subjects:
    تماس از وبسایت
    ثبت سفارش
    تبادل لینک

    but if I use a tag in that subject which contains UTF-8 text it works fine.
    for example we have a text field for name, i.e. [text1] and we insert it in subject field and save the form. Now if a user fill the field with UTF-8 contents "ثبت سفارش" it will be sent without any problem, but if I write that entry directly in subject field and save the form it wouldn't work.

    If you want I can create a test post with both conditions to try them.

    Thanks

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    I just tested it on my local environment, but couldn't reproduce the problem what you wrote. I directly set "تماس از وبسایت" in the Subject field in the Mail section, but the form got submitted successfully and I recieved the correct mail.

    Maybe there is another factor relating to the problem in your environment. Could you tell what other plugins and what theme do you use? If possible, try deactivating all other plugins and switching to the default theme, then try the form again.

    Also, can you check your PHP error log? I suppose you can find some clues there.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic