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