Ben
Ben

Reputation: 62474

How to fix encoding: It’s

I have a string from the woot.com API () such as

addslashes(html_entity_decode(mb_convert_encoding($woot->teaser, "UTF-8")))

The problem is that it still turns out like That not-too-distant future? It’s been over twenty years.

I can't seem to fix the encoding issue... any suggestions on how to fix?

Upvotes: 2

Views: 1924

Answers (1)

Michiel Pater
Michiel Pater

Reputation: 23053

Have a look at this page

Unicode-friendly PHP and MySQL

On this page you will find an easy and clear explaination of UTF-8 encoding and how to apply this in your websites along with some practical examples.

You will also need to make sure that your files are saved using UTF-8 encoding (without BOM).

Upvotes: 2

Related Questions