We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e818e35 + d95a251 commit 68fe008Copy full SHA for 68fe008
src/DataConverter/Encoder/MbConvertEncodingEncoder.php
@@ -0,0 +1,11 @@
1
+<?php declare(strict_types=1);
2
+
3
+namespace XBase\DataConverter\Encoder;
4
5
+class MbConvertEncodingEncoder implements EncoderInterface
6
+{
7
+ public function encode(string $string, string $fromEncoding, string $toEncoding): string
8
+ {
9
+ return mb_convert_encoding($string, $toEncoding, $fromEncoding);
10
+ }
11
+}
0 commit comments