1--TEST--
2Basic UConverter::transcode() usage
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7var_dump(UConverter::transcode("This is an ascii string", 'utf-8', 'latin1'));
8// urlencode so that non-ascii shows up parsable in phpt file
9var_dump(urlencode(UConverter::transcode("Espa\xF1ol", 'utf-8', 'latin1')));
10var_dump(urlencode(UConverter::transcode("Stra\xDFa",  'utf-8', 'latin1')));
11
12var_dump(bin2hex(UConverter::transcode("\xE4", 'utf-8', 'koi8-r')));
13?>
14--EXPECT--
15string(23) "This is an ascii string"
16string(12) "Espa%C3%B1ol"
17string(11) "Stra%C3%9Fa"
18string(4) "d094"
19