META değer charset = UTF-8 gösteren UTF-8 karakterleri önler

0 Cevap php

Temelde ben içine karakterleri girebilirsiniz ve ben teslim tıkladığımda karakter (PHP kullanarak) bir MySQL sınama tabloya yazılır sadece bir textarea bir test programı yaptık.

Test tablo harmanlama UTF-8 olduğunu.

Bence iyi yazıyor veritabanına bir é veya ú yazmak isterseniz komut çalışıyor. Ama sonra benim sayfanın <head> alanına aşağıdaki meta deyimi eklerseniz:

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

... Karakterler şifreli hale başlar.

My theory is that the server is imposing some encoding that works well, but when I add the UTF-8 directive it overrides this server encoding and that this UTF-* encoding doesn't include the characters such as é and ú. But I thought that UTF-8 encoded all (bar Klingon etc) characters.

Basically my program works but I want to know why when I add the directive it doesn't. I think I'm missing something.

Herhangi bir yardım / öğretim en takdir.

Şimdiden teşekkürler.

0 Cevap