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.
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.