Entity encoding


I faced one tiny problem, when I output letters like čćšđž they are all outputted as they are written in source code except letter š which is encoded to &scaron.
How I can prevent this? Is it ok to use html_entity_encode for whole outputted text? Or should I leave it like that?

Best regards,

With UTF-8 encoding it should be sufficient to just use htmlspecialchars() to output strings, encoding things like & to & but without encoding accented characters like š.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.