Solved

UTF-8 chars in html

Posted on 2014-02-07
4
306 Views
Last Modified: 2014-03-09
Hello experts

I have a php page containing html
Everything was ok until i noticed that database echo's where not displaying there utf-8 chars.
I added the following to the file
<!DOCTYPE html>
<meta charset="utf-8">

This solved the displaying of the utf-8 chars from the database echo's
But now the utf-8 chars that are in the html of that page like € and é ë are displayed as <?> icons

Any id's?
0
Comment
Question by:Th0R
4 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39843105
It's a common issue.

Please read this article and post back if you still have any questions.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11880-Unicode-PHP-and-Character-Collisions.html

Best regards, ~Ray
0
 
LVL 15

Expert Comment

by:StealthyDev
ID: 39844346
Hi,

Since they are static content, try encoding the characters in your HTML page using the below table.

http://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=oct&unicodeinhtml=dec&htmlent=1
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now