tobeyt23 Posted October 15, 2008 Share Posted October 15, 2008 I am trying to replace weird this this “ and †with no luck. Can anyone help me? Link to comment https://forums.phpfreaks.com/topic/128571-how-to-replace-werid-chars/ Share on other sites More sharing options...
Orio Posted October 15, 2008 Share Posted October 15, 2008 Can you define exactly what "unweird" chars are? Alphanumeric? What about punctuations and spaces etc'? Orio. Link to comment https://forums.phpfreaks.com/topic/128571-how-to-replace-werid-chars/#findComment-666304 Share on other sites More sharing options...
tobeyt23 Posted October 15, 2008 Author Share Posted October 15, 2008 These should be " and ' Link to comment https://forums.phpfreaks.com/topic/128571-how-to-replace-werid-chars/#findComment-666308 Share on other sites More sharing options...
effigy Posted October 15, 2008 Share Posted October 15, 2008 What encoding are you working in? Link to comment https://forums.phpfreaks.com/topic/128571-how-to-replace-werid-chars/#findComment-666322 Share on other sites More sharing options...
tobeyt23 Posted October 15, 2008 Author Share Posted October 15, 2008 I think the users copy and pasted from a word doc. Using iso-8859-1 Link to comment https://forums.phpfreaks.com/topic/128571-how-to-replace-werid-chars/#findComment-666331 Share on other sites More sharing options...
effigy Posted October 15, 2008 Share Posted October 15, 2008 Word's "smart quotes" should not translate like this. Can you elaborate? All of those characters are in Windows-1252, where only "â" carries over to Latin-1. Link to comment https://forums.phpfreaks.com/topic/128571-how-to-replace-werid-chars/#findComment-666355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.