Home
last modified time | relevance | path

Searched refs:mb_internal_encoding (Results 1 – 25 of 83) sorted by relevance

1234

/PHP-7.2/ext/mbstring/tests/
H A Dmb_internal_encoding_variation1.phpt6 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…
10 /* Prototype : string mb_internal_encoding([string $encoding])
21 echo "*** Testing mb_internal_encoding() : usage variations ***\n";
95 var_dump( mb_internal_encoding($input) );
103 *** Testing mb_internal_encoding() : usage variations ***
107 Warning: mb_internal_encoding(): Unknown encoding "0" in %s on line %d
112 Warning: mb_internal_encoding(): Unknown encoding "1" in %s on line %d
152 Warning: mb_internal_encoding(): Unknown encoding "" in %s on line %d
157 Warning: mb_internal_encoding(): Unknown encoding "" in %s on line %d
167 Warning: mb_internal_encoding(): Unknown encoding "" in %s on line %d
[all …]
H A Dmb_internal_encoding.phpt2 mb_internal_encoding()
13 $r = mb_internal_encoding('EUC-JP');
15 $enc = mb_internal_encoding();
19 $r = mb_internal_encoding('UTF-8');
21 $enc = mb_internal_encoding();
25 $r = mb_internal_encoding('ASCII');
27 $enc = mb_internal_encoding();
34 $r = mb_internal_encoding('BAD');
36 $enc = mb_internal_encoding();
41 $enc = mb_internal_encoding();
[all …]
H A Dmb_internal_encoding_basic.phpt2 Test mb_internal_encoding() function : basic functionality
6 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…
10 /* Prototype : string mb_internal_encoding([string $encoding])
17 * Test basic functionality of mb_internal_encoding
20 echo "*** Testing mb_internal_encoding() : basic functionality ***\n";
22 var_dump(mb_internal_encoding()); //default internal encoding
24 var_dump(mb_internal_encoding('UTF-8')); //change internal encoding to UTF-8
26 var_dump(mb_internal_encoding()); //check internal encoding is now set to UTF-8
32 *** Testing mb_internal_encoding() : basic functionality ***
H A Dmb_internal_encoding_error1.phpt2 Test mb_internal_encoding() function : error conditions - pass incorrect number of args
6 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…
10 /* Prototype : string mb_internal_encoding([string $encoding])
17 * Test mb_internal_encoding with one more than the expected number of arguments
20 echo "*** Testing mb_internal_encoding() : error conditions ***\n";
22 echo "\n-- Testing mb_internal_encoding() function with more than expected no. of arguments --\n";
25 var_dump( mb_internal_encoding($encoding, $extra_arg) );
30 *** Testing mb_internal_encoding() : error conditions ***
32 -- Testing mb_internal_encoding() function with more than expected no. of arguments --
34 Warning: mb_internal_encoding() expects at most 1 parameter, 2 given in %s on line %d
H A Dbug48697.phpt2 Bug #48697 (mb_internal_encoding() value gets reset by parse_str() or mb_parse_str()
11 var_dump(mb_internal_encoding());
12 mb_internal_encoding('UTF-8');
13 var_dump(mb_internal_encoding());
15 var_dump(mb_internal_encoding());
16 mb_internal_encoding('UTF-8');
17 var_dump(mb_internal_encoding());
19 var_dump(mb_internal_encoding());
H A Dmb_internal_encoding_error2.phpt2 Test mb_internal_encoding() function : error conditions - pass an unknown encoding
6 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…
10 /* Prototype : string mb_internal_encoding([string $encoding])
17 * Pass mb_internal_encoding an unknown encoding
20 echo "*** Testing mb_internal_encoding() : error conditions ***\n";
22 var_dump(mb_internal_encoding('unknown-encoding'));
27 *** Testing mb_internal_encoding() : error conditions ***
29 Warning: mb_internal_encoding(): Unknown encoding "unknown-encoding" in %s on line %d
H A Dmb_internal_encoding_basic2.phpt2 Test mb_internal_encoding() function : basic functionality
11 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…
15 /* Prototype : string mb_internal_encoding([string $encoding])
22 * Test basic functionality of mb_internal_encoding
25 echo "*** Testing mb_internal_encoding() : basic functionality ***\n";
35 var_dump(mb_internal_encoding()); //default internal encoding
36 var_dump(mb_internal_encoding('UTF-8')); //change internal encoding to UTF-8
37 var_dump(mb_internal_encoding()); //check internal encoding is now set to UTF-8
42 *** Testing mb_internal_encoding() : basic functionality ***
H A Dmb_strcut_missing_boundary_check.phpt10 mb_internal_encoding("UCS-4LE");
12 mb_internal_encoding("UCS-4BE");
14 mb_internal_encoding("UCS-2LE");
16 mb_internal_encoding("UCS-2BE");
18 mb_internal_encoding("UTF-16");
20 mb_internal_encoding("UTF-8");
22 mb_internal_encoding("ISO-8859-1");
H A Dmb_strlen.phpt30 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
37 mb_internal_encoding('SJIS') or print("mb_internal_encoding() failed\n");
45 mb_internal_encoding('JIS') or print("mb_internal_encoding() failed\n");
53 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
68 mb_internal_encoding('EUC-JP');
H A Dmb_internal_encoding_ini_basic2.phpt15 echo mb_internal_encoding()."\n";
17 mb_internal_encoding('UTF-8');
18 echo mb_internal_encoding()."\n";
H A Dbug69086.phpt9 mb_internal_encoding("UCS-4BE");
12 mb_internal_encoding("UTF-8");
H A Dmb_internal_encoding_variation2.phpt2 Test mb_internal_encoding() function : usage variations - Test different encodings
6 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…
10 /* Prototype : string mb_internal_encoding([string $encoding])
22 echo "*** Testing mb_internal_encoding() : usage variations ***\n";
84 var_dump(mb_internal_encoding());
85 var_dump(mb_internal_encoding($enc));
86 var_dump(mb_internal_encoding());
92 *** Testing mb_internal_encoding() : usage variations ***
H A Doverload02.phpt19 echo mb_internal_encoding()."\n";
27 …$replaced = mb_convert_encoding(str_replace($c, '!!', $converted_str), mb_internal_encoding(), 'Sh…
H A Dbug69079.phpt8 mb_internal_encoding('UTF-8');
15 mb_internal_encoding('EUC-JP-2004');
H A Dmb_send_mail06.phpt11 if (!@mb_internal_encoding('BIG5')) {
27 mb_internal_encoding('BIG5');
H A Dmb_send_mail07.phpt11 if (!@mb_internal_encoding('ISO-2022-KR')) {
27 mb_internal_encoding('EUC-KR');
H A Dmb_send_mail05.phpt11 if (!@mb_internal_encoding('GB2312')) {
27 mb_internal_encoding('GB2312');
H A Dmb_stripos.phpt21 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
102 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
117 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
H A Dmb_strpos.phpt21 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
102 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
117 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
H A Dini_language.phpt11 var_dump(mb_internal_encoding());
H A Dini_encoding.phpt23 var_dump(mb_internal_encoding());
43 var_dump(mb_internal_encoding());
/PHP-7.2/ext/standard/tests/strings/
H A Dhtmlentities06.phpt11 mb_internal_encoding('ISO-8859-15');
12 print mb_internal_encoding()."\n";
H A Dhtmlentities07.phpt11 mb_internal_encoding('ISO-8859-1');
12 print mb_internal_encoding()."\n";
H A Dhtmlentities09.phpt12 mb_internal_encoding('Shift_JIS');
13 print mb_internal_encoding()."\n";
H A Dhtmlentities08.phpt12 mb_internal_encoding('EUC-JP');
13 print mb_internal_encoding()."\n";

Completed in 24 milliseconds

1234