Lines Matching refs:s
21 $s = $sjis;
22 $s = mb_detect_encoding($s, 'SJIS');
23 print("SJIS: $s\n");
25 $s = $jis;
26 $s = mb_detect_encoding($s, 'JIS');
27 print("JIS: $s\n");
29 $s = $euc_jp;
30 $s = mb_detect_encoding($s, 'UTF-8,EUC-JP,JIS');
31 print("EUC-JP: $s\n");
33 $s = $euc_jp;
34 $s = mb_detect_encoding($s, 'JIS,EUC-JP');
35 print("EUC-JP: $s\n");
45 $s = $jis;
46 $s = mb_detect_encoding($s, $a);
47 print("JIS: $s\n");
49 $s = $euc_jp;
50 $s = mb_detect_encoding($s, $a);
51 print("EUC-JP: $s\n");
53 $s = $sjis;
54 $s = mb_detect_encoding($s, $a);
55 print("SJIS: $s\n");
64 $s = $jis;
65 $s = mb_detect_encoding($s);
66 print("JIS: $s\n");
68 $s = $euc_jp;
69 $s = mb_detect_encoding($s);
70 print("EUC-JP: $s\n");
72 $s = $sjis;
73 $s = mb_detect_encoding($s);
74 print("SJIS: $s\n");
80 $s = mb_detect_encoding(1234, 'EUC-JP');
81 print("INT: $s\n"); // EUC-JP
83 $s = mb_detect_encoding('', 'EUC-JP');
84 print("EUC-JP: $s\n"); // SJIS
86 $s = $euc_jp;
88 var_dump(mb_detect_encoding($s, 'BAD'));