<?php function utfwin($str){ return iconv('utf-8','windows-1251',$str); } function winutf($str){ iconv('windows-1251','utf-8',$str); } ?>