Searched refs:mb_internal_encoding (Results 1 – 25 of 93) sorted by relevance
1234
2 Test mb_internal_encoding() function : basic functionality6 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…11 * Test basic functionality of mb_internal_encoding14 echo "*** Testing mb_internal_encoding() : basic functionality ***\n";16 var_dump(mb_internal_encoding()); //default internal encoding18 var_dump(mb_internal_encoding('UTF-8')); //change internal encoding to UTF-820 var_dump(mb_internal_encoding()); //check internal encoding is now set to UTF-826 *** Testing mb_internal_encoding() : basic functionality ***
2 Test mb_internal_encoding() function : error conditions - pass an unknown encoding6 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…11 * Pass mb_internal_encoding an unknown encoding14 echo "*** Testing mb_internal_encoding() : error conditions ***\n";17 var_dump(mb_internal_encoding('unknown-encoding'));24 *** Testing mb_internal_encoding() : error conditions ***25 mb_internal_encoding(): Argument #1 ($encoding) must be a valid encoding, "unknown-encoding" given
2 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());
2 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
2 Test mb_internal_encoding() function : basic functionality11 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…16 * Test basic functionality of mb_internal_encoding19 echo "*** Testing mb_internal_encoding() : basic functionality ***\n";29 var_dump(mb_internal_encoding()); //default internal encoding30 var_dump(mb_internal_encoding('UTF-8')); //change internal encoding to UTF-831 var_dump(mb_internal_encoding()); //check internal encoding is now set to UTF-836 *** Testing mb_internal_encoding() : basic functionality ***
10 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");
10 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 effect38 var_dump(mb_internal_encoding());44 var_dump(mb_internal_encoding());
27 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");34 mb_internal_encoding('SJIS') or print("mb_internal_encoding() failed\n");42 mb_internal_encoding('JIS') or print("mb_internal_encoding() failed\n");50 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");57 mb_internal_encoding('EUC-JP');
15 echo mb_internal_encoding()."\n";17 mb_internal_encoding('UTF-8');18 echo mb_internal_encoding()."\n";
20 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");
9 mb_internal_encoding("UCS-4BE");12 mb_internal_encoding("UTF-8");
20 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");
2 Test mb_internal_encoding() function : usage variations - Test different encodings6 function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in thi…16 echo "*** Testing mb_internal_encoding() : usage variations ***\n";78 var_dump(mb_internal_encoding());79 var_dump(mb_internal_encoding($enc));80 var_dump(mb_internal_encoding());86 *** Testing mb_internal_encoding() : usage variations ***
8 mb_internal_encoding('UTF-8');19 mb_internal_encoding('EUC-JP-2004');
11 if (!@mb_internal_encoding('BIG5')) {27 mb_internal_encoding('BIG5');
11 if (!@mb_internal_encoding('ISO-2022-KR')) {27 mb_internal_encoding('EUC-KR');
11 if (!@mb_internal_encoding('GB2312')) {27 mb_internal_encoding('GB2312');
11 var_dump(mb_internal_encoding());
13 mb_internal_encoding("utf-8");
15 var_dump(mb_internal_encoding());
11 mb_internal_encoding('ISO-8859-1');12 print mb_internal_encoding()."\n";
11 mb_internal_encoding('ISO-8859-15');12 print mb_internal_encoding()."\n";
11 mb_internal_encoding('EUC-JP');12 print mb_internal_encoding()."\n";
11 mb_internal_encoding('Shift_JIS');12 print mb_internal_encoding()."\n";
Completed in 24 milliseconds