0

my issue is i am displaying german language character and my browser convert some character in question mark symbol. enter image description here

I have added image here you can see what is exact issue.

I have tried meta tag also like

still i am getting same issue. please help to correct code

my code

<meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta http-equiv="Content-Language" content="de, fr, it, en">
        <meta name="author" content="">
shingala sohil
  • 153
  • 1
  • 12

2 Answers2

1

Hi I have find answer myself

Data comes from db using php server side scripting thats why html meta tag not working but we can do it using php header. please check below one line of code to do it.

header('Content-Type: text/html; charset=ISO-8859-1');

shingala sohil
  • 153
  • 1
  • 12
0

So there are a few possibilities:

Maybe (if you work on a web server) the configuration is wrong. Search for settings about ISO 8859-1.

It also could be the configuration of your browser. Check this topic on stackoverflow. It describes how to force browsers to use UTF-8 using .htaccess.

And if everything of this doesn't work you could change every character to the html code with search and replace. This should work without UTF-8.

  • Ä = &Auml;
  • ä = &auml;
  • Ö = &Ouml;
  • ö = &ouml;
  • Ü = &Uuml;
  • ü = &uuml;

I hope you find a solution.

Community
  • 1
  • 1
Philipp
  • 198
  • 1
  • 16