 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
bhakti.thakkar
Joined: 14 Jul 2007 Posts: 2
|
Posted: Thu Jul 03, 2008 9:27 am Post subject: problem displaying special characters |
|
|
Hi all,
i am using MSSQL + pear + PHP Version 5.2.3 . the problem is displaying some characters. i have multiple assent coming in from different languages. So i am using htmlentities() to display the characters rightly. Also i have added
| Code: |
header('Content-type: text/html; charset=utf-8'); |
and
| Code: | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
on my page. but the problem is while displaying " ' ". if from the DB there is a field which has for e.g
Name_VC =htmlentities("Robert Wilson’s ");
with or without htmlentities it displayes Robert Wilson?s
how can i eliminate this problem.
Thanks |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri Jul 04, 2008 2:01 pm Post subject: |
|
|
| Either htmlentities() with the correct $charset parameter (=> manual) or utf8_encode() should help you. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|