1--TEST-- 2Test the basics to function iconv. 3--CREDITS-- 4Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> 5--SKIPIF-- 6<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?> 7<?php if(substr(PHP_OS, 0, 3) == 'WIN' ) {die('skip not for windows');} ?> 8<?php if(setlocale(LC_ALL, "en_US.utf8") === false) { die('skip en_US.utf8 locales not available'); } ?> 9--FILE-- 10<?php 11setlocale(LC_ALL, "en_US.utf8"); 12$in_charset = 'UTF-8'; 13$out_charset = 'ASCII//TRANSLIT'; 14$string_to_translate = 'Žluťoučký kůň\n'; 15 16$string_out = iconv($in_charset, $out_charset, $string_to_translate); 17 18var_dump($string_out); 19?> 20--EXPECT-- 21string(15) "Zlutoucky kun\n" 22