Jump to content

Why UTF-8 Encoding Broken O Remote


mcfc4heatons

Recommended Posts

I have a project on localhost  with some dynamic data from MYSQL being echoed to page and it UTF-8 content including symbols like '£' are outputted correctly. When I upload to remote, I get '?' placeholders instead of some symbols, evidently not outputting as UTF-8. DB on remote is UTF-8, PHP file is UTF-8 format, UTF-8  is the default PHP encoding on remote. I just can't understand why not outputting UTF-8 correctly on remote?

Link to comment
Share on other sites

As well as checking your database default encoding is UTF8 you need to check that the tables and problematic fields are using the default (as the charsets can be overridden at each level).

Your HTML also needs to be defined with charset UTF-8.

In addition, the db connection (the bridge between the two) also needs the charset defining as UTF8.

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.