php utf-8 karakter için html kişiler

0 Cevap

Ben php UTF-8 için HTML_ENTITIES kullandık.

$input = "<div> 'Testing' </div>";

echo htmlentities($input,ENT_NOQUOTES,"UTF-8");

Ancak, yukarıda da kodlama i girdi ve kullanımı kodlama aşağıda verirseniz o zaman ben boş çıktı alıyorum, normal bir giriş için çalışıyor.

$input = "<div>Other 'user' is working on this line. Please contribute the next line.</div>";

echo htmlentities($input,ENT_NOQUOTES,"UTF-8");

I dont know how this is giving blank output. If i print $input then I am getting below value in $input.

<div>Other user working on this line.�Please contribute the next line.</div>

Herhangi bir şey htmlentities kodu cevapsız, Lütfen millet önerileri sunmak.

Teşekkürler,

-Pravin.

0 Cevap