How to resolve Encode error

Asked

Viewed 93 times

0

Recently I had a question here about how to solve a accent problem , and managed to help me in the following way: echo utf8_encode($row['nome']);.

But there was one small mistake, which I’m failing to resolve, which is inserir a descrição da imagem aqui. That square was supposed to be that dash: . He’s a little different than normal: -.

When I type in HTML usually it works, but when is pulling from the bank gets that way.

  • is an HTML Entities?

  • Which database charset? You are using utf8_unicode_ci or utf8mb4_unicode_ci?

  • It is utf8_unicode_ci in the database. Common HTML.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.