0

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"

Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
Avinash Raut
  • 1,872
  • 20
  • 26

2 Answers2

1

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

from w3schools.com

Marcos Silva
  • 1,669
  • 1
  • 18
  • 24
1

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">
Chandan Rai
  • 9,879
  • 2
  • 20
  • 28