File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,10 +118,7 @@ class QRCode{
118
118
public function __construct (SettingsContainerInterface $ options = null ){
119
119
// save the current mb encoding (in case it differs from UTF-8)
120
120
$ this ->mbCurrentEncoding = mb_internal_encoding ();
121
- // use UTF-8 from here on
122
- mb_internal_encoding ('UTF-8 ' );
123
-
124
- $ this ->options = $ options ?? new QROptions ;
121
+ $ this ->options = $ options ?? new QROptions ;
125
122
}
126
123
127
124
/**
@@ -141,6 +138,9 @@ public function __destruct(){
141
138
* @return mixed
142
139
*/
143
140
public function render (string $ data , string $ file = null ){
141
+ // use UTF-8 from here on
142
+ mb_internal_encoding ('UTF-8 ' );
143
+
144
144
return $ this ->initOutputInterface ($ data )->dump ($ file );
145
145
}
146
146
You can’t perform that action at this time.
0 commit comments