64 763
Assignments Done
99,3%
Successfully Done
In September 2018

Answer to Question #48265 in AJAX | JavaScript | HTML | PHP for amirreza

Question #48265

I'm using engine but this script just the English language displays correctly and in other languages, such as Persian and Spanish shows a peculiar shape (like this : "اخباØ") please help me.
Expert's answer
Answer
Ifyou are using engine, please check encoding that is enabled in your engine.
It's recommended you to use “UTF-8” (it also can be named like “utf-8” or
“unicode-8” in different scripts).
Alsoit recommended to use “mb_” functions to do operations with strings. To set
encoding in php script please use next function:
mb_internal_encoding('utf');
Also you can add charset to HTTP-headers:
header('Content-type:text/plain; charset=utf-8');
Also, if you usesdatabase, please set same encoding in requests as in engine, for example:
mysql> SET NAMES utf8;
Ishould say that very important that the system must support necessary to you
encoding.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions