208 posts
  • 6 Years of Membership
  • Affiliate Level 4
  • Author Level 5
  • Beta Tester
+3 more
AdrianMG
says

Hi there guys! I am triying to implement support for special chars to the jQuery autocomplete plugin: http://www.dyve.net/jquery/?autocomplete

I mean, if you have: “Adrián Mato Gondelle” for example, display it if you type: “Adrian”....

Anyone can help me please?

2036 posts Quality Manager
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 4
  • Envato Team
+14 more
jremick
Envato team
says

So it looks like the plugin looks at a defined list of “options”, which I’m assuming is where you put “Adrian Mato Gondelle”. I would think you just need to encode the accented á

To do that http://tlt.its.psu.edu/suggestions/international/web/codehtml.html#accent has the html encoding info. Hope this helps! :)

128 posts
  • Top Monthly Author
  • Weekly Top Seller
  • Elite Author
  • Featured Author
+7 more
GeertDD
says

You need to do some kind of transliteration, both on the suggestion list and on the user input.

I have no idea how to do this with javascript (basically just characters replacements), but once ported a function that does this from phputf8 to the Kohana PHP framework: http://dev.kohanaphp.com/browser/tags/2.3.1/system/core/utf8/transliterate_to_ascii.php

Hope this helps, at least you know what you could search for with Google. :-)

208 posts
  • 6 Years of Membership
  • Affiliate Level 4
  • Author Level 5
  • Beta Tester
+3 more
AdrianMG
says

Thank you guys! I will research a little more. thanks!

by
by
by
by
by
by