Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка PHP Notice: iconv(): Wrong charset, conversion from `HTML-ENTITIES' to `UTF-8'


Recommended Posts

Версия ocStore 3.0.3.7

 

Ошибка

 

PHP Notice:  iconv(): Wrong charset, conversion from `HTML-ENTITIES' to `UTF-8' is not allowed in домен.ru/storage/vendor/twig/twig/src/Extension/CoreExtension.php on line 1004

 

Кусок кода из файла:

1004 строка это return iconv($from, $to, $string);

 

function twig_spaceless($content)
{
    return trim(preg_replace('/>\s+</', '><', $content));
}

function twig_convert_encoding($string, $to, $from)
{
    if (!\function_exists('iconv')) {
        throw new RuntimeError('Unable to convert encoding: required function iconv() does not exist. You should install ext-iconv or symfony/polyfill-iconv.');
    }
    
    return iconv($from, $to, $string);
    
}

 

Кто хорошо понимает в PHP подскажите как добавить преобразование в UTF-8, если правильно понимаю из ошибки

Link to comment
Share on other sites


@KFSE я могу ошибаться, но скорее всего что нет, но я Вам уже написал, что купите модуль под другие домены и Ваша проблема бугдет решена моменильно, а пока экономить 750р. и при этом тратить уйму времени на поиск решения, ик себе затея. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.