The program I am writing has to output utf-8. When the page is loading the php looks for the $_GET['id'] and echo's something for each keyword.Example:
if($_GET['id']=="keyword1"){
echo('reply for keyword1');
}else if($_GET['id']=="keyword2"){
echo('reply for keyword2');
}
Those reply's from the "echo" command have to be in UTF-8, because the page is only accessed by another program who can only understand UTF-8.
When I try to read the page the output is not exactly UTF-8.
Question 1: What type of encoding does the standard echo command? Question 2: If echo does not output UTF-8 but something else. How can I convert the standard output of the echo command in UTF-8?