Lines Matching refs:encoding
28 foreach($encodings as $encoding) {
29 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
30 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
31 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
32 echo $encoding.': '.$reconverted_str.PHP_EOL;
39 foreach($encodings as $encoding) {
40 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
41 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
42 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
43 echo $encoding.': '.$reconverted_str.PHP_EOL;
50 foreach($encodings as $encoding) {
51 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
52 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
53 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
54 echo $encoding.': '.$reconverted_str.PHP_EOL;
61 foreach($encodings as $encoding) {
62 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
63 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
64 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
65 echo $encoding.': '.$reconverted_str.PHP_EOL;
72 foreach($encodings as $encoding) {
73 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
74 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
75 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
76 echo $encoding.': '.$reconverted_str.PHP_EOL;
81 foreach($encodings as $encoding) {
82 var_dump(mb_strcut($input, 0, $bytes_length, $encoding));