xref: /PHP-5.4/ext/iconv/tests/eucjp2utf8.phpt (revision 9490f1c8)
1--TEST--
2EUC-JP to UTF8
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6error_reporting=2039
7--FILE--
8<?php
9/* include('test.inc'); */
10/* charset=EUC-JP */
11
12$str = "
13���ܸ�ƥ����Ȥ�English Text
14���ܸ�ƥ����Ȥ�English Text
15���ܸ�ƥ����Ȥ�English Text
16���ܸ�ƥ����Ȥ�English Text
17���ܸ�ƥ����Ȥ�English Text
18���ܸ�ƥ����Ȥ�English Text
19���ܸ�ƥ����Ȥ�English Text
20���ܸ�ƥ����Ȥ�English Text
21���ܸ�ƥ����Ȥ�English Text
22���ܸ�ƥ����Ȥ�English Text
23���ܸ�ƥ����Ȥ�English Text
24���ܸ�ƥ����Ȥ�English Text
25���ܸ�ƥ����Ȥ�English Text
26���ܸ�ƥ����Ȥ�English Text
27���ܸ�ƥ����Ȥ�English Text
28���ܸ�ƥ����Ȥ�English Text
29���ܸ�ƥ����Ȥ�English Text
30���ܸ�ƥ����Ȥ�English Text
31���ܸ�ƥ����Ȥ�English Text
32���ܸ�ƥ����Ȥ�English Text
33���ܸ�ƥ����Ȥ�English Text
34���ܸ�ƥ����Ȥ�English Text
35���ܸ�ƥ����Ȥ�English Text
36���ܸ�ƥ����Ȥ�English Text
37���ܸ�ƥ����Ȥ�English Text
38���ܸ�ƥ����Ȥ�English Text
39���ܸ�ƥ����Ȥ�English Text
40���ܸ�ƥ����Ȥ�English Text
41���ܸ�ƥ����Ȥ�English Text
42���ܸ�ƥ����Ȥ�English Text
43���ܸ�ƥ����Ȥ�English Text
44���ܸ�ƥ����Ȥ�English Text
45���ܸ�ƥ����Ȥ�English Text
46���ܸ�ƥ����Ȥ�English Text
47���ܸ�ƥ����Ȥ�English Text
48���ܸ�ƥ����Ȥ�English Text
49";
50
51$str = iconv("EUC-JP", "UTF-8", $str); /* libiconv(1.8) doesn't know "UTF8" but "UTF-8". */
52$str = base64_encode($str);
53echo $str."\n";
54
55?>
56--EXPECT--
57CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0Cg==
58
59