set_encoding
set_encoding($encoding); - set encoding for the current page
The function accepts parameters as input:
$encoding – new encoding of the current page
After testing, the function returns the result of its work to the script :
true – the new encoding was set successfullytrue – the operation failed