Marian Klühspies
Marian Klühspies

Reputation: 17627

UTF-8 encoding works on PC but not on mobile

The encoding for my site seems to not work on my mobile device.

I´m using this line for setting UTF-8

<meta http-equiv="content-type" content="text/html; charset=utf-8">

On my PC everything works fine, but not on mobile.

In PHPStorm I encoded the whole project as UTF-8 too.

What is wrong?

Upvotes: 0

Views: 1184

Answers (2)

Marian Kl&#252;hspies
Marian Kl&#252;hspies

Reputation: 17627

Solved. I´ve opened the file in Notepad++ and switched the encoding from "UTF-8 without BOM" to "UTF-8"

Upvotes: 1

osyra42
osyra42

Reputation: 638

I use this on one of my sites and it seems to work well.

<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1 user-scalable=no">

Upvotes: 0

Related Questions