MikeB1 Posted August 11, 2008 Share Posted August 11, 2008 I bought a scipt that converts my html code into php code for doing multivariate testing on my webpage. Everything works fine, except I get a few strange characters. Mostly "..." shows up as "…" without the parenthesis of course. I know nothing about php, not sure how to even fix this, and having these errors on my page could cost me some sales. Any help? Link to comment https://forums.phpfreaks.com/topic/119086-solved-need-help-with-strange-charactors-newbie/ Share on other sites More sharing options...
DarkWater Posted August 11, 2008 Share Posted August 11, 2008 I think that's because of MSWord. It uses a special ellipsis character instead of just being normal. It has to be a freak. Try going into MSWord, typing ..., letting it "transform" into the special one, then paste it into str_replace(). Link to comment https://forums.phpfreaks.com/topic/119086-solved-need-help-with-strange-charactors-newbie/#findComment-613176 Share on other sites More sharing options...
MikeB1 Posted August 11, 2008 Author Share Posted August 11, 2008 I bet you are right. I did originally type the sales letter in MSWord before putting it into html. I'll try that, thanks! Link to comment https://forums.phpfreaks.com/topic/119086-solved-need-help-with-strange-charactors-newbie/#findComment-613179 Share on other sites More sharing options...
DarkWater Posted August 11, 2008 Share Posted August 11, 2008 The final result would probably look like: $text = str_replace('special character here', '...', $text); Assuming $text is your variable that's being parsed and stuff. You'll have to play around with it. Link to comment https://forums.phpfreaks.com/topic/119086-solved-need-help-with-strange-charactors-newbie/#findComment-613180 Share on other sites More sharing options...
MikeB1 Posted August 11, 2008 Author Share Posted August 11, 2008 I just went into the code and found all the ellipses and retyped them in the editor. It's working fine now. Thanks again for the tip. This thing gave me a headache all weekend Link to comment https://forums.phpfreaks.com/topic/119086-solved-need-help-with-strange-charactors-newbie/#findComment-613182 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.