I'm having a problem with htmlentities()
$txt = "árbol";
echo $txt; // outputs: árbol
echo htmlentities($txt); // outputs: ??rbol (árbol)
The second echo should output árbol (á)
I'm using utf-8:
<meta charset="utf-8">
What's going on? Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…