Display Foreign Characters on webpage

I'm trying to figure out why foreign fonts aren't showing up on my site. I have checked that UTF-8 is in the meta and that the font (Open Sans) is capable of displaying the correct font. I even tried adding the below code into the .htacess file with no luck. Anyone know what could be wrong?

AddType 'text/html; charset=utf-8' .html

Open in new window


This is the page with the issue and a screenshot is attached: https://www.herecomestheguide.com/real-wedding/tag/Indian
This is  the page where it's showing correctly (see title):  https://www.herecomestheguide.com/northern-california/wedding-services/anais-event-planning-design/real-weddings

Title under the image doesn't display foreign character
LVL 3
E-DubFrontend Web Developer & Graphic DesignerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Olaf DoschkeSoftware DeveloperCommented:
Take a look at the response headers your server sends back by using https://headers.cloxy.net/
The content type in the final HTTP response should be Content-Type: text/html; charset=UTF-8

If that's not the case, your .htaccess file does perhaps not override a server default.

When you have things like HTML entities, but any server side script escaped & to & then you might end up with a double entity encoding that renders as if it's not at all respected, so ï is maybe even stored as ï and displays as ï

Such wrong escaping of user input is often a beginner error just blindly doing something like htmlspecialchars() on user input to escape any malicious HTML posted. Sanitizing user input is more than just that.

If you go for UTF-8, you don't make use of HTML entities anymore, so look through your data and replace such special characters encodings with the real UTF-8 characters for them, then they also are displayed correctly.

Bye, Olaf.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
E-DubFrontend Web Developer & Graphic DesignerAuthor Commented:
Thanks for your help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.