Author Topic: [SOLVED]Problem with polish diacritic characters in search module  (Read 2202 times)


  • Beginner
  • *
  • Posts: 3
I found a problem when I try to find products with polish diacritic characters in name. Those characters are just removed from searching word, e.g. I type word: 'piĆ³ro' but search results are for word 'piro'. 
Any ideas, what can cause this problem?
I use Joomla 1.7.1 and VM2 J

OK I solved a problem. I figured it out that joomla getWord function is causing this problem. I replaced getWord to getVar in category/view.html.php and models/product.php and it works.
It's realy strage because getWord is only proxy function to getVar. Code of getWord function:
Code: [Select]
public static function getWord($name, $default = '', $hash = 'default')
{// Deprecation warning.
JLog::add('JRequest::getWord is deprecated.', JLog::WARNING, 'deprecated');
return self::getVar($name, $default, $hash, 'word');
so I'm not sure why it works but i'm happy;)


  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED]Problem with polish diacritic characters in search module
« Reply #1 on: October 27, 2011, 23:29:49 pm »
You should use getString, but we create atm our own function for this. Getvar is too unsecure, getString is also not the best.
Should I fix your bug, please support the VirtueMart project and become a member
Extensions approved by the core team: