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
9if (substr(PHP_OS, 0, 3) == 'WIN' ) {die('skip not for windows');}
10if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
11if (setlocale(LC_ALL, "en_US.utf8") === false) { die('skip en_US.utf8 locales not available'); }
12?>
13--FILE--
14<?php
15setlocale(LC_ALL, "en_US.utf8");
16$in_charset          = 'UTF-8';
17$out_charset 	     = 'ASCII//TRANSLIT';
18$string_to_translate = 'Žluťoučký kůň\n';
19
20$string_out = iconv($in_charset, $out_charset, $string_to_translate);
21
22var_dump($string_out);
23?>
24--EXPECTF--
25string(1%d) "Zlutouck%Sy kun\n"
26