vinpkl Posted November 21, 2009 Share Posted November 21, 2009 hi all in my content opening quotes " changes to “ close quotes " changes to â€� what should i use. example : sams’s “whip lash” performances changes to sam’s “whip lashâ€� performances vineet Link to comment https://forums.phpfreaks.com/topic/182380-quotes-changing/ Share on other sites More sharing options...
genericnumber1 Posted November 21, 2009 Share Posted November 21, 2009 Try encoding whatever it is in Unicode. Link to comment https://forums.phpfreaks.com/topic/182380-quotes-changing/#findComment-962417 Share on other sites More sharing options...
vinpkl Posted November 21, 2009 Author Share Posted November 21, 2009 hi generic is it something like this $encoded = unicode_encode ('“', 'ISO-8859-2'); This gives me error Call to undefined function unicode_encode() vineet Try encoding whatever it is in Unicode. Link to comment https://forums.phpfreaks.com/topic/182380-quotes-changing/#findComment-962422 Share on other sites More sharing options...
genericnumber1 Posted November 21, 2009 Share Posted November 21, 2009 Well I don't know what it is you have exactly. If it's just in a php file, check the encoding of that file. If it's in a database, check the encoding of the database table. Link to comment https://forums.phpfreaks.com/topic/182380-quotes-changing/#findComment-962423 Share on other sites More sharing options...
GingerRobot Posted November 21, 2009 Share Posted November 21, 2009 example : sams’s “whip lash” performances changes to sam’s “whip lashâ€� performances vineet Those quotes aren't normal quotes. They appear to my the microsoft "smart" ones. You could convert them to standard quotes. For example, see: http://shiflett.org/blog/2005/oct/convert-smart-quotes-with-php Link to comment https://forums.phpfreaks.com/topic/182380-quotes-changing/#findComment-962460 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.