开发者

problem with hebrew in wordpress

开发者 https://www.devze.com 2023-01-09 18:20 出处:网络
i want to change theSearchForm.php file in my wordpress the开发者_运维知识库mes to hebrew. i mean i want to see \'חפש\' (hebrew text) instead of \'search for \'.

i want to change the SearchForm.php file in my wordpress the开发者_运维知识库mes to hebrew. i mean i want to see 'חפש' (hebrew text) instead of 'search for '.

when i change it i see gebrish.

why ??

thanks.


You need to make sure that the content-type of the page is the correct one - normally UTF-8 would work for all languages.

You can use a meta tag within the head element:

<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 

For Hebrew it is iso-8859-8.

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-8"> 

This is normally already setup within the template and you can look at your settings to see if it is correct - In Settings -> Reading, under "Encoding for pages and feeds".

You also need to be sure that the page is saved as UTF-8 and not ascii - check your text editor settings.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号