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

#   ascii code

##

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

Less More

- Posts: 515
- Thank you received: 22
-
-

1 year 7 months ago [\#366237](#366237) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[ascii code](/forum/32-content-creation/909257-ascii-code#366237 "-- url of the page with the problem -- :   www.jouwnaambord.nl  -- HikaShop version -- : 5.1.5 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Firefox - latest -- Error-message(debug-mod must be tuned on) -- : no error  Hi, when i make Characteristics and ad some values in the name i use text ans a ascii code. When i save the values i see the text right and also i see the ascii code right. But in the product on the frontpage i see the text right but the ascii code as ascii code. What to do to see the ascii code on the frontpage right.")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- url of the page with the problem -- : [ www.jouwnaambord.nl](http://www.jouwnaambord.nl)
-- HikaShop version -- : 5.1.5
-- Joomla version -- : latest
-- PHP version -- : latest
-- Browser(s) name and version -- : Firefox - latest
-- Error-message(debug-mod must be tuned on) -- : no error

Hi, when i make Characteristics and ad some values in the name i use text ans a ascii code.
When i save the values i see the text right and also i see the ascii code right.
But in the product on the frontpage i see the text right but the ascii code as ascii code.
What to do to see the ascii code on the frontpage right.

[ ![Schermafbeelding2025-03-16om15.57.03.png](/forum/attachment/60359) ](/forum/attachment/60359 "...om15.57.03.png")

[ ![Schermafbeelding2025-03-16om15.56.53.png](/forum/attachment/60360) ](/forum/attachment/60360 "...om15.56.53.png")

[ ![Schermafbeelding2025-03-16om15.57.44.png](/forum/attachment/60361) ](/forum/attachment/60361 "...om15.57.44.png")

[ ![Schermafbeelding2025-03-16om15.57.03&#95;2025-03-16.png](/forum/attachment/60362) ](/forum/attachment/60362 "...2025-03-16.png")

- [ ![Schermafbeelding2025-03-16om15.57.03.png](/forum/attachment/60359) ](/forum/attachment/60359 "...om15.57.03.png") [ ](/forum/attachment/60359?download=1 "...om15.57.03.png")
- [ ![Schermafbeelding2025-03-16om15.56.53.png](/forum/attachment/60360) ](/forum/attachment/60360 "...om15.56.53.png") [ ](/forum/attachment/60360?download=1 "...om15.56.53.png")
- [ ![Schermafbeelding2025-03-16om15.57.44.png](/forum/attachment/60361) ](/forum/attachment/60361 "...om15.57.44.png") [ ](/forum/attachment/60361?download=1 "...om15.57.44.png")
- [ ![Schermafbeelding2025-03-16om15.57.03&#95;2025-03-16.png](/forum/attachment/60362) ](/forum/attachment/60362 "...2025-03-16.png") [ ](/forum/attachment/60362?download=1 "...2025-03-16.png")
- [ ![Schermafbeelding2025-03-16om15.56.53&#95;2025-03-16.png](/forum/attachment/60363) ](/forum/attachment/60363 "...2025-03-16.png") [ ](/forum/attachment/60363?download=1 "...2025-03-16.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA5MjU3LWFzY2lpLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

1 year 7 months ago [\#366240](#366240) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[ascii code](/forum/32-content-creation/909257-ascii-code#366240 "-- url of the page with the problem -- :   www.jouwnaambord.nl  -- HikaShop version -- : 5.1.5 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Firefox - latest -- Error-message(debug-mod must be tuned on) -- : no error  Hi, when i make Characteristics and ad some values in the name i use text ans a ascii code. When i save the values i see the text right and also i see the ascii code right. But in the product on the frontpage i see the text right but the ascii code as ascii code. What to do to see the ascii code on the frontpage right.")*

Hi,

This is handled by Joomla's HTML library for selects.
It comes from the line: Code:

$html .= $options['option.text.toHtml'] ? htmlentities(html_entity_decode($text, ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8') : $text;

in the file libraries/src/HTML/Helpers/Select.php
If you change it to: Code:

$html .= $text;

it will allow for these codes to be displayed in the dropdowns. Note that this will affect all the dropdowns in Joomla.
I'm not sure if it could have consequences elsewhere.
Also, you would have to do the change again each time you update Joomla and this Select.php file is updated by Joomla.

A cleaner way to do it would be to modify the line: Code:

$html = JHTML::_('select.'.$characteristic-&gt;characteristic_display_method.'list', $this-&gt;values, @$characteristic-&gt;characteristic_id, 'class="'.HK_FORM_SELECT_CLASS.'" size="1"' . $options, 'value', 'text', $selected, $id );

to be able to pass that option.text.toHtml option to Joomla in the file product / show_block_characteristic via the menu Display&gt;Views.
However, I'm not sure how to change this code to allow for this.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA5MjU3LWFzY2lpLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 515
- Thank you received: 22
-
-

1 year 7 months ago [\#366287](#366287) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[ascii code](/forum/32-content-creation/909257-ascii-code#366287 "-- url of the page with the problem -- :   www.jouwnaambord.nl  -- HikaShop version -- : 5.1.5 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Firefox - latest -- Error-message(debug-mod must be tuned on) -- : no error  Hi, when i make Characteristics and ad some values in the name i use text ans a ascii code. When i save the values i see the text right and also i see the ascii code right. But in the product on the frontpage i see the text right but the ascii code as ascii code. What to do to see the ascii code on the frontpage right.")*

Hi Nicolas,

Thx for your answer.
I think i must fix this another way.
Becouse Joomla! has freqently a update, and change this line every time that will be forget.

Fred

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA5MjU3LWFzY2lpLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

1 year 7 months ago [\#366289](#366289) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[ascii code](/forum/32-content-creation/909257-ascii-code#366289 "-- url of the page with the problem -- :   www.jouwnaambord.nl  -- HikaShop version -- : 5.1.5 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Firefox - latest -- Error-message(debug-mod must be tuned on) -- : no error  Hi, when i make Characteristics and ad some values in the name i use text ans a ascii code. When i save the values i see the text right and also i see the ascii code right. But in the product on the frontpage i see the text right but the ascii code as ascii code. What to do to see the ascii code on the frontpage right.")*

Hi,

So, I've looked into it today. Change the line: Code:

$html = JHTML::_('select.'.$characteristic-&gt;characteristic_display_method.'list', $this-&gt;values, @$characteristic-&gt;characteristic_id, 'class="'.HK_FORM_SELECT_CLASS.'" size="1"' . $options, 'value', 'text', $selected, $id );

to: Code:

$html = JHTML::_( 'select.'.$characteristic-&gt;characteristic_display_method.'list', $this-&gt;values, @$characteristic-&gt;characteristic_id, array( 'list.attr' =&gt; 'class="'.HK_FORM_SELECT_CLASS.'" size="1"' . $options, 'list.select' =&gt; $selected, 'id' =&gt; $id, 'option.text.toHtml' =&gt; false, ), );

in the file product / show_block_characteristic via the menu Display&gt;Views and it will allow for HTML entities in the characteristic values.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA5MjU3LWFzY2lpLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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?

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

Time to create page: 0.066 seconds

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