File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22iconv_mime_encode()
33--EXTENSIONS--
44iconv
5+ --INI--
6+ iconv.internal_charset=iso-8859-1
57--SKIPIF--
68<?php
79// ISO-2022-JP is a stateful encoding, so the right answer is not
1113if (ICONV_IMPL == "unknown " ) {
1214 die ("skip byte-comparison of stateful encoding with unknown iconv " );
1315}
14- ?>
15- --INI--
16- iconv.internal_charset=iso-8859-1
17- --SKIPIF--
18- <?php
1916if (PHP_OS_FAMILY === 'Solaris ' ) {
2017 die ("skip Solaris native iconv does not support MIME encoding " );
2118}
@@ -36,7 +33,7 @@ $preference = array(
3633for ($ line_len = 0 ; $ line_len < 80 ; ++$ line_len ) {
3734 print "-------- line length= $ line_len \n" ;
3835 $ preference ["line-length " ] = $ line_len ;
39- $ result = iconv_mime_encode ("From " , "サンプル文字列サンプル文字列日本語テキスト " , $ preference );
36+ $ result = iconv_mime_encode ("From " , "����ץ�ʸ����ץ�ʸ�������ܸ�ƥ����� " , $ preference );
4037 var_dump ($ result );
4138 if ($ result !== false ) {
4239 $ max = max (array_map ("strlen " , explode ("\n" , $ result )));
You can’t perform that action at this time.
0 commit comments