I wouldn't use HTML entities in the database since you may display them in other contexts than HTML/XML, and also get problems like this one. So if possible, store the text in some unicode encoding in the database, without entities.
If you must use entities for some reason, I suppose you could just decode them before passing to collection_select. I think CGI.unescapeHTML is pretty limited, but there are libs: http://www.google.com/search?q=ruby+decode+html+entities On Thu, Aug 26, 2010 at 12:32, Mitchell Gould <[email protected]> wrote: > I have french unicoded coded characters in my database. They use the > ê format. > > When I use form.collection_select it turns the & into & and then the > french character is not displayed. > > How can I resolve this. > > > Thanks in advance > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "rails-i18n" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-i18n?hl=en. > > -- You received this message because you are subscribed to the Google Groups "rails-i18n" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-i18n?hl=en.
