yes exactly i want to set char-set uft-8 for a string but display a glyph like � in the decoded string . i can't solve this probleme i trying all of methods but not solved.
for example my string :
$string = 'چي موقعي ميتوانيم برای خيار گلخانه از کود برگ جست است٠اده کنيم';
$decoded = mb_convert_encoding ($string, 'windows-1252', 'UTF-8');
decoded string in Persian language :
چي موقعي ميتوانيم برای خيار گلخانه از کود برگ جست است� اده کنيم
i think for solving this problem i can't use replace of � a i liked word .