xref: /PHP-8.0/ext/iconv/tests/eucjp2utf8.phpt (revision 787dfd09)
1--TEST--
2EUC-JP to UTF8
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6error_reporting=2039
7--FILE--
8<?php
9/* charset=EUC-JP */
10
11$str = "
12���ܸ�ƥ����Ȥ�English Text
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";
49
50$str = iconv("EUC-JP", "UTF-8", $str); /* libiconv(1.8) doesn't know "UTF8" but "UTF-8". */
51$str = base64_encode($str);
52echo $str."\n";
53
54?>
55--EXPECT--
56CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0CuaXpeacrOiqnuODhuOCreOCueODiOOBqEVuZ2xpc2ggVGV4dArml6XmnKzoqp7jg4bjgq3jgrnjg4jjgahFbmdsaXNoIFRleHQK5pel5pys6Kqe44OG44Kt44K544OI44GoRW5nbGlzaCBUZXh0Cg==
57