Author Topic: There are wrong accentuated character in Search for Products  (Read 2212 times)

greyow

  • Beginner
  • *
  • Posts: 7
There are wrong accentuated character in Search for Products
« on: March 31, 2008, 11:23:39 am »
Description:
There are wrong accentuated character in 'Search for Products or Categories here'
Product->Related Products

VirtueMart Version: VirtueMart_1.1.0_1332
Joomla Version: 1.5.2

Steps to replicate:
in picture.

Proposed fix(es):
If I use htmlspecialchars instead of htmlentities, it works good.

product.ajax_tools.php
111, 112 rows
'category' => htmlspecialchars($db->f("category_name")),
'product' => htmlspecialchars($db->f("product_name"))

http://hu.php.net/manual/en/function.htmlentities.php


System info:
MySQL: 5.0.45-Debian_1-log
PHP:  4.4.4-9+lenny1
Apache/1.3.34 (Debian) PHP/4.4.4-9+lenny1 mod_fastcgi/2.4.2
Mozilla/5.0 (X11; U; Linux i686; hu; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13

[attachment cleanup by admin]