0

hi Guys i'm working on a website in which some of the text is in Spanish but when i tried to fetch them in browser they look like this

enter image description here

is there any way to solve this with php or html meta tags..i tried using php function and meta tags below here but No diffrence at all

header('Content-Type: text/html; charset=utf-8' );
mysqli_query("SET CHARACTER_SET_CLIENT='utf8'",$connect);
mysqli_query("SET CHARACTER_SET_RESULTS='utf8'",$connect);
mysqli_query("SET CHARACTER_SET_CONNECTION='utf8'",$connect);
ini_set('default_charset', 'utf-8');

htmlspecialchars_decode();
html_entity_decode();

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

please help!

Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
Yashgupta
  • 203
  • 1
  • 3
  • 12
  • 1
    this is a typo'd post. The connection comes first. Edit: The duplicate contains the correct syntax and much more. – Funk Forty Niner Jul 24 '18 at 11:33
  • The first step is checking in what characterset the data is stored in the database: https://stackoverflow.com/questions/1049728/how-do-i-see-what-character-set-a-mysql-database-table-column-is and go from there – AgeDeO Jul 24 '18 at 11:33
  • thank sir ,i just solved this – Yashgupta Jul 24 '18 at 11:42

0 Answers0