html_to_text destroys UTF-8.
Here is an example
<?php
|
require_once('config.php');
|
header('Content-type: text/plain; charset=UTF-8');
|
$htmlstring = "<p>Choose the correct answer for this occasion:</p><p><strong>How do you say you are sorry e.g.. at someone's misfortunes?</strong><strong></strong></p>";
|
echo "Testing input to see if it is UTF-8: ", iconv("UTF-8", "UTF-8", $htmlstring);
|
$textstring = html_to_text($htmlstring);
|
echo "Testing output to see if it is UTF-8: ", iconv("UTF-8", "UTF-8", $textstring);
|