mcfc4heatons Posted August 12, 2021 Share Posted August 12, 2021 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? Quote Link to comment Share on other sites More sharing options...
Barand Posted August 12, 2021 Share Posted August 12, 2021 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. 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.