Skip to content

Instantly share code, notes, and snippets.

@0m3r
Created April 18, 2014 07:45
Show Gist options
  • Save 0m3r/11030012 to your computer and use it in GitHub Desktop.
Save 0m3r/11030012 to your computer and use it in GitHub Desktop.
fast utf-8 fix for ajaxpro
<?php
$_html = $block->toHtml();
if (function_exists('mb_convert_encoding')) {
$_html = mb_convert_encoding($_html, "HTML-ENTITIES", "UTF-8");
}
return $_html;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment