Hi All,
I’m new to PHP. I need a help from u. I’m generating word doc from php. The problem is characters(unicode) which I give in the input textfield is not display properly in the generated word doc.
My input is : tès©åæ÷øþësttést, but
displays in Word doc : tčs©åę÷ųžėsttést
seems lot of difference in the word doc like “è” became “č” and “øþë” became “ųžė”.
My php code is
$text = utf8_decode(htmlspecialchars(stripslashes(trim($_POST[‘imageDesc’.$i]))))
and I store the $text in the word doc.
Note: I have place meta tag in the php page like:
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
when check in the php page(print($text)) its working fine but its not proper only in the word doc.
Please help me to solve this prob.
Thanks in advance
Guru