ChrisF79 Posted March 16, 2010 Share Posted March 16, 2010 Greetings: I have a regex that goes through some source code and finds 3 - Attached and stores it as $garage_spaces. If I then do an echo $garage_spaces, I don't have the but just a space. That's fine enough. When I insert this into a MySQL table, it just looks like "3 - Attached" which is again fine. However, when I do a select and pull the garage field, I get weird ascii characters instead of the spaces. It looks like 3�-�Attached for some reason. It is driving me nuts! Anybody know what I'm doing wrong or what I could try to do to fix this? Thank you so much! Quote Link to comment https://forums.phpfreaks.com/topic/195461-mysqlphp-problem-with-storing-unusual-characters/ Share on other sites More sharing options...
jskywalker Posted March 16, 2010 Share Posted March 16, 2010 Anybody know what I'm doing wrong or what I could try to do to fix this? Try posting some source-code........ Quote Link to comment https://forums.phpfreaks.com/topic/195461-mysqlphp-problem-with-storing-unusual-characters/#findComment-1027138 Share on other sites More sharing options...
fenway Posted March 20, 2010 Share Posted March 20, 2010 UTF*? Quote Link to comment https://forums.phpfreaks.com/topic/195461-mysqlphp-problem-with-storing-unusual-characters/#findComment-1029305 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.