Home
last modified time | relevance | path

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

1234

/PHP-8.2/ext/mbstring/tests/
H A Dbug48697.phpt2 Bug #48697 (mb_internal_encoding() value gets reset by parse_str() or mb_parse_str()
9 var_dump(mb_internal_encoding());
10 mb_internal_encoding('UTF-8');
11 var_dump(mb_internal_encoding());
13 var_dump(mb_internal_encoding());
14 mb_internal_encoding('UTF-8');
15 var_dump(mb_internal_encoding());
17 var_dump(mb_internal_encoding());
H A Dmb_internal_encoding.phpt2 mb_internal_encoding()
12 $r = mb_internal_encoding('EUC-JP');
14 $enc = mb_internal_encoding();
18 $r = mb_internal_encoding('UTF-8');
20 $enc = mb_internal_encoding();
24 $r = mb_internal_encoding('ASCII');
26 $enc = mb_internal_encoding();
34 $r = mb_internal_encoding('BAD_NAME');
40 $enc = mb_internal_encoding();
52 mb_internal_encoding(): Argument #1 ($encoding) must be a valid encoding, "BAD_NAME" given
H A Dmb_internal_encoding_basic.phpt2 Test mb_internal_encoding() function : basic functionality
8 * Test basic functionality of mb_internal_encoding
11 echo "*** Testing mb_internal_encoding() : basic functionality ***\n";
13 var_dump(mb_internal_encoding()); //default internal encoding
15 var_dump(mb_internal_encoding('UTF-8')); //change internal encoding to UTF-8
17 var_dump(mb_internal_encoding()); //check internal encoding is now set to UTF-8
23 *** Testing mb_internal_encoding() : basic functionality ***
H A Dmb_internal_encoding_error2.phpt2 Test mb_internal_encoding() function : error conditions - pass an unknown encoding
8 * Pass mb_internal_encoding an unknown encoding
11 echo "*** Testing mb_internal_encoding() : error conditions ***\n";
14 var_dump(mb_internal_encoding('unknown-encoding'));
21 *** Testing mb_internal_encoding() : error conditions ***
22 mb_internal_encoding(): Argument #1 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_internal_encoding_basic2.phpt2 Test mb_internal_encoding() function : basic functionality
13 * Test basic functionality of mb_internal_encoding
16 echo "*** Testing mb_internal_encoding() : basic functionality ***\n";
26 var_dump(mb_internal_encoding()); //default internal encoding
27 var_dump(mb_internal_encoding('UTF-8')); //change internal encoding to UTF-8
28 var_dump(mb_internal_encoding()); //check internal encoding is now set to UTF-8
33 *** Testing mb_internal_encoding() : basic functionality ***
H A Dmb_strcut_missing_boundary_check.phpt7 mb_internal_encoding("UCS-4LE");
9 mb_internal_encoding("UCS-4BE");
11 mb_internal_encoding("UCS-2LE");
13 mb_internal_encoding("UCS-2BE");
15 mb_internal_encoding("UTF-16");
17 mb_internal_encoding("UTF-8");
19 mb_internal_encoding("ISO-8859-1");
H A Dinternal_encoding.phpt10 var_dump(mb_internal_encoding());
15 var_dump(mb_internal_encoding());
21 var_dump(mb_internal_encoding());
27 var_dump(mb_internal_encoding());
30 mb_internal_encoding('utf-8');
32 var_dump(mb_internal_encoding());
35 // mb_internal_encoding() is set, this has no effect
38 var_dump(mb_internal_encoding());
44 var_dump(mb_internal_encoding());
H A Dgh9535b.phpt24 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
26 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
35 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
37 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
46 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
48 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
57 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
59 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
68 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
70 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
H A Dgh9535.phpt26 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
28 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
37 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
39 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
48 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
50 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
61 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
63 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
73 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
75 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
H A Dmb_strlen.phpt25 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
31 mb_internal_encoding('SJIS') or print("mb_internal_encoding() failed\n");
66 mb_internal_encoding('JIS') or print("mb_internal_encoding() failed\n");
72 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
78 mb_internal_encoding('EUC-JP');
H A Dmb_internal_encoding_ini_basic2.phpt12 echo mb_internal_encoding()."\n";
14 mb_internal_encoding('UTF-8');
15 echo mb_internal_encoding()."\n";
H A Dmb_internal_encoding_ini_invalid_encoding.phpt12 echo mb_internal_encoding()."\n";
14 mb_internal_encoding('UTF-8');
15 echo mb_internal_encoding()."\n";
H A Dmb_strpos.phpt20 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
56 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
71 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
H A Dbug69086.phpt9 mb_internal_encoding("UCS-4BE");
12 mb_internal_encoding("UTF-8");
H A Dmb_stripos.phpt20 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
77 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
92 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
H A Dbug69079.phpt8 mb_internal_encoding('UTF-8');
19 mb_internal_encoding('EUC-JP-2004');
H A Dmb_internal_encoding_variation2.phpt2 Test mb_internal_encoding() function : usage variations - Test different encodings
13 echo "*** Testing mb_internal_encoding() : usage variations ***\n";
71 var_dump(mb_internal_encoding());
72 var_dump(mb_internal_encoding($enc));
73 var_dump(mb_internal_encoding());
79 *** Testing mb_internal_encoding() : usage variations ***
H A Dmb_send_mail06.phpt10 if (!@mb_internal_encoding('BIG5')) {
27 mb_internal_encoding('BIG5');
H A Dmb_send_mail05.phpt10 if (!@mb_internal_encoding('GB2312')) {
27 mb_internal_encoding('GB2312');
H A Dini_language.phpt11 var_dump(mb_internal_encoding());
H A Dini_encoding2.phpt23 var_dump(mb_internal_encoding());
43 var_dump(mb_internal_encoding());
/PHP-8.2/ext/standard/tests/strings/
H A Dhtmlentities06.phpt10 mb_internal_encoding('ISO-8859-15');
11 print mb_internal_encoding()."\n";
H A Dhtmlentities07.phpt10 mb_internal_encoding('ISO-8859-1');
11 print mb_internal_encoding()."\n";
H A Dhtmlentities09.phpt10 mb_internal_encoding('Shift_JIS');
11 print mb_internal_encoding()."\n";
H A Dhtmlentities08.phpt10 mb_internal_encoding('EUC-JP');
11 print mb_internal_encoding()."\n";

Completed in 31 milliseconds

1234