Lines Matching refs:encoding

25 foreach($encodings as $encoding) {
26 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
27 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
28 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
29 echo $encoding.': '.$reconverted_str.PHP_EOL;
36 foreach($encodings as $encoding) {
37 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
38 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
39 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
40 echo $encoding.': '.$reconverted_str.PHP_EOL;
47 foreach($encodings as $encoding) {
48 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
49 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
50 $reconverted_str = mb_convert_encoding($cut_str, mb_internal_encoding(), $encoding);
51 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;
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.trim(': '.$reconverted_str).PHP_EOL;
81 foreach($encodings as $encoding) {
82 echo $encoding.trim(': '.mb_strcut($input, 0, $bytes_length, $encoding)).PHP_EOL;