Reputation: 2113
I am getting � this symbol in HTML code but in a database it storing properly with the hyphen(-).
Here I am expecting "Hong Kong - Macau 04 nights / 05 days
" and now html displaying with "Hong Kong � Macau 04 nights / 05 days
"
Upvotes: 0
Views: 265
Reputation: 10377
This is an encoding problem, you need to find out what encoding your HTML files is in, it must be what you editor produces. add meta tag like this and replace the UTF-8 to whatever your editor produces
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Upvotes: 1
Reputation: 2029
Did you add this to your index.html head?
<meta charset="UTF-8">
A character in UTF8 can be from 1 to 4 bytes long. UTF-8 can represent any character in the Unicode standard. UTF-8 is backwards compatible with ASCII. UTF-8 is the preferred encoding for e-mail and web pages
Upvotes: 1