French characters encoding

123 0 0 0

Last Updated : 2023-12-10 01:52:39

Some times you will face a problem with french?other language characters in your web page that are not being displayed correctly. Such as instead of apostrophe.. And the solution lies in sing the meta charset='utf-8' in your page header. and also to convert the encoding of this piece of data to utf. Sometimes you might find our this is encoded twice, then you will need to decode it or convert to iso then to utf-8 again. Here are some few suggestions

$billTitle         = utf8_encode(htmlentities($billTitle, ENT_QUOTES, "UTF-8"));
$billTitle = utf8_decode($billTitle);
$billTitle = mb_convert_encoding($billTitle, "HTML-ENTITIES", "UTF-8" );

Mohammed Anwar

Mohammed Anwar

Experienced technical lead PHP, MySQL and Laravel Developer for 15+ years, with proven ability to develop and create high-quality and optimized web applications. Great ability to build and optimize database design, schema and queries. Versed programing trainer and instructor delivering web courses and helping others to get into the field in a timely manner. Fast and eager learner for new technologies .