Jump to content

MySQL/PHP problem with storing unusual characters


ChrisF79

Recommended Posts

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.