PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.0.9
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.0.9
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Source.php +20 -0 3.0.53.0.9 View file →
@@ -220,12 +220,32 @@
220 220 0,
221 221 );
222 222 }
223 223 break;
224 + case 'string':
225 + $data[ $i ] = $this->toUTF8( $data[ $i ] );
226 + break;
224 227 }
225 228 }
226 229
227 230 // error_log(print_r($data,true));
228 231 return $data;
232 + }
233 +
234 +
235 + /**
236 + * Converts values to UTF8, if required.
237 + *
238 + * @access protected
239 + *
240 + * @param string $datum The data to convert.
241 + *
242 + * @return string The converted data.
243 + */
244 + protected final function toUTF8( $datum ) {
245 + if ( ! function_exists( 'mb_detect_encoding' ) || mb_detect_encoding( $datum ) !== 'ASCII' ) {
246 + $datum = \ForceUTF8\Encoding::toUTF8( $datum );
247 + }
248 + return $datum;
229 249 }
230 250
231 251 }