Lines Matching refs:encoding
16 foreach($encodings as $encoding) {
17 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
18 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
19 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
20 echo $encoding.': '.$reconverted_str.PHP_EOL;
27 foreach($encodings as $encoding) {
28 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
29 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
30 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
31 echo $encoding.': '.$reconverted_str.PHP_EOL;
38 foreach($encodings as $encoding) {
39 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
40 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
41 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
42 echo $encoding.': '.$reconverted_str.PHP_EOL;
49 foreach($encodings as $encoding) {
50 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
51 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
52 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
53 echo $encoding.': '.$reconverted_str.PHP_EOL;
60 foreach($encodings as $encoding) {
61 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
62 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
63 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
64 echo $encoding.': '.$reconverted_str.PHP_EOL;
69 foreach($encodings as $encoding) {
70 var_dump(mb_strcut($input, 0, $bytes_length, $encoding));