I am not familiar with the concept of encoding. That's likely my main problem.
However, I just want to be able to take values that are already in my database (SQL Server) and display them in the browser. Some of those characters are from the German alphabet like ä, ö, ü. They display as �� instead.
I've tried lots of variations of php conversion hoping one of them would properly convert the value to the equivalent HTML entity so that it would then display properly in the browser. I know I can replace my text value with the HTML entity and then of course is displays correctly.
Here are some attempts:
$Text = "ü"
// echo mb_convert_encoding($Text,"SJIS");
// echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', $Text);
// echo htmlentities($Text, ENT_COMPAT, 'UTF-8');
// echo htmlentities($Text, ENT_NOQUOTES);
I know there are many other questions that seem related but none that have worked so far. Any help would be much appreciated.