simplyGD Posted December 7, 2020 Share Posted December 7, 2020 Mám problém s českou diakritikou v zákaznickém centru u zpráv od zákazníků. Konkrétně to je z poznámky u objednávky, kterou zákazníci mohou zanechat. Posílám screen rozsypané zprávy. Může to být někde chybným nastavením fontů například UTF-8 apod? Btw neděje se u všech zpráv jen některých. Máte někdo radu? I have a problem with Czech accents in the customer center for messages from customers. Specifically, this is from a note on the order that customers can leave. I'm sending screen message. Could it be some wrong font settings, such as UTF-8, etc.? Btw does not happen with all messages, only some. Does anyone have advice? Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2020 Share Posted December 7, 2020 Na FTP ./classes/Tools.php změnit funkci htmlentitiesUTF8 na: public static function htmlentitiesUTF8($string, $type = ENT_QUOTES) { if (is_array($string)) { return array_map(array('Tools', 'htmlentitiesUTF8'), $string); } return htmlspecialchars((string)$string, $type, "UTF-8"); } Link to comment Share on other sites More sharing options...
simplyGD Posted December 9, 2020 Author Share Posted December 9, 2020 Moc děkuji za odpověď. Ovšem zatím žádná změna ani po vyčištění mezipaměti. Link to comment Share on other sites More sharing options...
Guest Posted December 10, 2020 Share Posted December 10, 2020 Chyba bude asi jinde. Jinak to samé bylo řešeno i zde a úspěšně. Link to comment Share on other sites More sharing options...
Jezekla Posted February 28, 2021 Share Posted February 28, 2021 Jestli to potřebuješ u detailu objednávek, tak jsem to řešil takhle v souboru src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/msg_list_item.html.twig řádek 35 upravit na {{ message.message|raw|nl2br }} a pak vyčistit mezipamět <div class="messages-block-content"> <p class="mb-0 message customer-message"> {{ message.message|raw|nl2br }} </p> <p class="text-muted mb-0"> {{ message.customerFirstName ~ ' ' ~ message.customerLastName }} {{ message.messageDate.format }} </p> </div> 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now