简体   繁体   中英

Contact form 7 [_url] issue

The URL addresses on my website are with Hebrew chars. I'm using the [url_] special mail tag feature and I'm getting encoded urls address on the mail message.

The problem - i got the next question marks, and not the hebrew. I guess its not caused from DB because its mail-sender plugin... so what cause it?

example:

http://www.site-name.co.il/ /

PHP site, windows server. Wordpress, using Contact form 7 plugin.

my wp-config db line:

define('DB_COLLATE', 'utf8_general_ci');

Asked on plugin developers forum by someone else before 6 months, without answer.

How i can get the hebrew chars and not question marks?

Try to Add this to .htaccess file or create it and put into domain folder.

AddDefaultCharset utf-8  
AddCharset utf-8 *  
  <IfModule mod_charset.c>  
    CharsetSourceEnc utf-8  
    CharsetDefault utf-8  
  </IfModule>

But I advice use [_post_title] .
Note that the [_post_*] tag has value only when you put the contact form into content of a post or a page. They are not available if the contact form is put inside a sidebar widget. (inside loop)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM