I have a script for real estate, it has a local file for translation, I have translated it but the question Text displayed in the form of symbols ...
-
Adding
& lt;
- To add
default_charset = "utf-8" Code> addDefaultCharset utf-8 to httpd.ini
mbstring.internal_encoding = utf-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = at
mbstring.func_overload = 6
Here are some scripts Pages are:
index.php (control panel, translated text here is also distorted)
& lt ;? php ob_start ();? & Gt; & Lt ;; doctype html> gt; & gt; HTML & gt; & lt; top & gt; & gt; title & gt; property list Ng & lt; / title & gt; & Lt; meta http-equiv = "Content-Type" content = "text / html; Charset = UTF-8 "/> gt; & gt; Body & gt; {APP_TPL}
Php included 'Listings.php';? & Gt;listing .php
gt; & quot; Meta http-equiv = " Content-type "content =" text / html; Charset = UTF-8 ">
preview (main visitor page, all text malformed)
& Lt; head & gt; & lt; meta-http-equiv = "content-publ R "content =" text / html; Charset = UTF-8 "> gt; Php ob_start ();? & Gt; & lt ;; doctype html & gt; & gt; & gt; HTML & gt; & lt; top & Gt; & lt; title & gt; property listing & lt; / title & gt; & gt; meta http-equiv = "content-type" content = "text / html; Charset = UTF-8 "/> gt; & gt; Body & gt; {APP_TPL}
Php included 'Listings.php';? & Gt;en.php (local file)
#login $ PL_LANG ['login_login'] = ' administrator login '; $ PL_LANG [' login_username '] = "vide"; $ PL_LANG [' login_password '] = "كلمة السر"; $ PL_LANG [' login_login '] = "admin login"; $ PL_LANG [' login_register '] = "تسجيل"; $ PL_LANG [ 'login_err'] [1] = "wrong username or password"; $ PL_LANG [ 'login_err'] [2] = "access denied"; $ PL_LANG [ 'login_err'] [3] = "Account is disabled"; $ PL_LANG ['login_error'] = "error"; # left menu $ PL_LANG ['menu_home'] = "home"; $ PL_LANG [ 'Menu_properties'] = "Properties"; $ PL_LANG [ 'menu_options'] = "Options"; $ PL_LANG [ 'menu_install'] = "Install"; $ PL_LANG [ 'menu_preview'] = "Preview"; $ PL_LANG [ "Menu_logout '] =" logout "; $ PL_LANG [' menu_users'] =" user "; #Common $ PL_LANG [ '_ yesno'] [ 't'] =" Yes "; $ PL_LANG [ '_ yesno'] [ 'F'] = "no";
Make sure that you are using to save files editor file Writing as UTF-8
You can also try to change the text in UTF-8
$ utf8_text = mb_convert_encoding ($ non_utf8, 'UTF-8', mb_detect_encoding ($ non_utf8)) ;
No comments:
Post a Comment