[Skip to main content](#vessel-content)

#   Encoding bug for the products grid

##

- **[filiar](/forum/user/33070-filiar "View filiar's Profile")**
- [![filiar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33070-filiar "View filiar's Profile") Topic Author
- [ Offline](/forum/user/33070-filiar)

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 8 months ago -  11 years 8 months ago [\#194995](#194995) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  *[Encoding bug for the products grid](/forum/22-market-bug-report/875720-encoding-bug-for-the-products-grid#194995 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  Hi,  For the products grid non UTF characters for the product description links are not shown as expected after update:  In the product edit page no such problem exists and the names are correctly displayed  Regards!")* was created by *[filiar](/forum/user/33070-filiar "View filiar's Profile")*

-- HikaShop version -- : 2.4.0
-- HikaMarket version -- : 1.6.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.16

Hi,

For the products grid non UTF characters for the product description links are not shown as expected after update:

In the product edit page no such problem exists and the names are correctly displayed

[ ![CC.png](/forum/attachment/23142) ](/forum/attachment/23142 "CC.png")

Regards!

- [ ![CC.png](/forum/attachment/23142) ](/forum/attachment/23142 "CC.png") [ ](/forum/attachment/23142?download=1 "CC.png")

Last edit: 11 years 8 months ago by [filiar](/forum/user/33070-filiar "View filiar's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3NTcyMC1lbmNvZGluZy1idWctZm9yLXRoZS1wcm9kdWN0cy1ncmlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 8 months ago [\#195005](#195005) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Encoding bug for the products grid](/forum/22-market-bug-report/875720-encoding-bug-for-the-products-grid#195005 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  Hi,  For the products grid non UTF characters for the product description links are not shown as expected after update:  In the product edit page no such problem exists and the names are correctly displayed  Regards!")*

Hi,

The modification has been introduced in HikaMarket 1.6.0 ; the product name is now "secured" with an "htmlentities" ; so it does not display the HTML code if a vendor enter a "&lt;strong&gt;" in the product name it will not put the text in bold.
I will see to perform some new tests but for the moment you can create a view override for the view "productmarket &#124; listing" and replace the Code:

echo htmlentities($product-&gt;product_name);

By Code:

echo $product-&gt;product_name;

Maybe a htmlspecialchars would be better and I'll also see to force the UTF8 encoding.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3NTcyMC1lbmNvZGluZy1idWctZm9yLXRoZS1wcm9kdWN0cy1ncmlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 8 months ago [\#195007](#195007) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Encoding bug for the products grid](/forum/22-market-bug-report/875720-encoding-bug-for-the-products-grid#195007 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  Hi,  For the products grid non UTF characters for the product description links are not shown as expected after update:  In the product edit page no such problem exists and the names are correctly displayed  Regards!")*

Hi,

Easier solution, in the view "productmarket &#124; listing", replace the Code:

htmlentities($product-&gt;product_name)

By Code:

$this-&gt;escape($product-&gt;product_name)

To use the right function with the right encoding.
(It will be added in the next release).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3NTcyMC1lbmNvZGluZy1idWctZm9yLXRoZS1wcm9kdWN0cy1ncmlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[filiar](/forum/user/33070-filiar "View filiar's Profile")**
- [![filiar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33070-filiar "View filiar's Profile") Topic Author
- [ Offline](/forum/user/33070-filiar)

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 8 months ago [\#195095](#195095) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Encoding bug for the products grid](/forum/22-market-bug-report/875720-encoding-bug-for-the-products-grid#195095 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  Hi,  For the products grid non UTF characters for the product description links are not shown as expected after update:  In the product edit page no such problem exists and the names are correctly displayed  Regards!")*

Thank You, Jerome.

That solved the encoding issue.

Regards!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3NTcyMC1lbmNvZGluZy1idWctZm9yLXRoZS1wcm9kdWN0cy1ncmlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.052 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
