Moe Zecko
2006-Jul-22 07:57 UTC
[Rails] (bug) auto_complete_for has no support for umlauts!
i wanted to file a bug in the rubyonrails trac, since trac is currently broken, i am writing this here. maybe there is a solution allready: auto_complete_for has no support for umlauts. this i a very big problem for non-english developers out there, since almost everything searched for contains umlauts. * searching by umlauts is not possible * displaying of the found entries is screwed see also http://lists.rubyonrails.org/pipermail/rails/2006-April/033612.html fix: escape the search and the results. affected file: http://dev.rubyonrails.org/svn/rails/trunk/actionpack/lib/action_controller/macros/auto_complete.rb -- Posted via http://www.ruby-forum.com/.
Moe Zecko
2006-Jul-23 12:53 UTC
[Rails] Re: (bug) auto_complete_for has no support for umlauts!
> auto_complete_for has no support for umlauts.after trying everything from the wiki.rubyonrails.org pages http://wiki.rubyonrails.com/rails/pages/Internationalization http://wiki.rubyonrails.com/rails/pages/HowToUseUnicodeStrings the solution was quite trivial. 1. check that the database encoding is UTF8 (in PostgreSQL: Unicode) - sqlite on win32 should not be a problem 2. add a meta value to serve unicode documents to your layout <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> tried everywhere with mongrel, works perfectly with umlauts (don''t forget that you english speaking ppl might use the term "doppelg?nger" which is an english term with umlauts!) this should also work for apache. hope some other guys also post solutions, since i found loooooots of unanswered questions on this list/forum. bye, z3cko -- Posted via http://www.ruby-forum.com/.