Home
last modified time | relevance | path

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

12345

/PHP-8.4/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_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 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 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.phpt17 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
19 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
28 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
30 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
39 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
41 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
50 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
52 $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);
H A Dmb_decode_mimeheader_variation4.phpt11 mb_internal_encoding('UCS-2');
16 mb_internal_encoding('ASCII');
20 mb_internal_encoding('ASCII');
24 mb_internal_encoding('ASCII');
28 mb_internal_encoding('ASCII');
32 mb_internal_encoding('ASCII');
45 mb_internal_encoding('UCS-2');
49 mb_internal_encoding('ASCII');
53 mb_internal_encoding('ASCII');
57 mb_internal_encoding('ASCII');
[all …]
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_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_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");
68 mb_internal_encoding('JIS') or print("mb_internal_encoding() failed\n");
74 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
96 mb_internal_encoding('EUC-JP');
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 Dbug69086.phpt9 mb_internal_encoding("UCS-4BE");
12 mb_internal_encoding("UTF-8");
H A Dbug69079.phpt8 mb_internal_encoding('UTF-8');
19 mb_internal_encoding('EUC-JP-2004');
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 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 Dmb_stripos.phpt19 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
76 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
91 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
H A Dini_language.phpt11 var_dump(mb_internal_encoding());
/PHP-8.4/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 27 milliseconds

12345