))<form name="FormName" action="/utf.php" method="post">
<textarea cols="80" rows="25" name="in" type="text"><?php
if($_POST['1'])
echo iconv( "windows-1251", "utf-8", $_POST['in']);
if($_POST['2'])
echo iconv( "utf-8", "windows-1251", $_POST['in']);
?></textarea> <br>
<input type="submit" name="1" value="win => utf">
<input type="submit" name="2" value="utf => win">
</form>


If you append the string //IGNORE, characters that cannot be represented in the target charset are silently discarded.
If you append the string //IGNORE, characters that cannot be represented in the target charset are silently discarded.