Passing decoded Cyrillic Characters in json_encode

To decode the encoded cyrillic characters like \u041D in an array and to pass it to json_encode, follow the below technique json_encode($array, JSON_UNESCAPED_UNICODE); or $json = defined(‘JSON_UNESCAPED_UNICODE’) ? json_encode($array, JSON_UNESCAPED_UNICODE) : json_encode($str); or if PHP 5.4 and below preg_replace_callback(‘/\\\u([01-9a-fA-F]{4})/’, ‘prepareUTF8’, json_encode($array))

Using OpenCart Effectively

Do not rename admin folder Do not install 1.5.x.x or any lower opencart version. Use 2.3.0.2 or the latest stable version Do not install vqmod Do not install too many SEO extensions. Always use SEO extension from one particular developer Avoid using Nitro Cache if your website is frequently updated with products or price or […]