Wednesday, September 19, 2007

typo bug

The blogging engine that I am using is called Typo. One of the nice features is the "live search", in which it starts to search as you are typing (yes... it is AJAX).

But there is a stupid bug that stopped it from working with non-latin characters. I spotted it about 2 years ago but yet the bug is still here... orz... so here it is again: To fix it, simply change the Javascript from

escape($F('q'))

to
encodeURIComponent($F('q'))

No comments: