jason360 Posted October 29, 2014 Share Posted October 29, 2014 am coming across the problem. When I use copied text in my input form it gives some characters this � character. I am not sure how to post text so this doesn't happen. Example: This line copied: The 976cc, 101-hp Rotax® 1000R V-Twin engine is known for its reliable power. Produces: The 976cc, 101-hp Rotax� 1000R V-Twin engine is Can-Am's most powerful side-by-side engine. My code: if (get_magic_quotes_gpc()) { $description_clean_magic = stripslashes($description); } else { $description_clean_magic = $description; } Quote Link to comment Share on other sites More sharing options...
Psycho Posted October 29, 2014 Share Posted October 29, 2014 Sounds like a character encoding problem. Take a look at this thread http://forums.phpfreaks.com/topic/290726-character-encoding-problem-got-strange-characters-in-my-database/?hl=%2Butf+%2Bdatabase&do=findComment&comment=1489348 Quote Link to comment Share on other sites More sharing options...
Barand Posted October 29, 2014 Share Posted October 29, 2014 Not only changes that character but appears to change the whole description Example: This line copied: The 976cc, 101-hp Rotax® 1000R V-Twin engine is known for its reliable power. Produces: The 976cc, 101-hp Rotax� 1000R V-Twin engine is Can-Am's most powerful side-by-side engine. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.