It works if I write this as the value for the text field:
value="<%= @echantillon['material'].force_encoding('UTF-8') %> "
Which means that when it is doing the SELECT from the database, it is
not selecting it in UTF-8. How can I force it to do selects in UTF-8?
On Apr 21, 10:40 am, ES <[email protected]> wrote:
> I have still not found a solution to this. Does anyone have an idea?
>
> On Apr 14, 6:47 pm, ES <[email protected]> wrote:
>
>
>
> > I'm running Rails 2.3.5
>
> > On Apr 14, 2:34 pm, Mikel Lindsaar <[email protected]> wrote:
>
> > > On 14, April 2010, at 14 Apr 19:58, ES wrote:
>
> > > > I have no problems displaying data from my database with characters
> > > > like é à è etc. anywhere in my application; however on my edit page,
> > > > when it tries to display the data in the text fields I get
> > > > incompatible character encoding errors. Any ideas?
>
> > > > <% for c in @attribute_columns do %>
> > > > <%= f.text_field c.second %>
>
> > > What version of Rails are you running?
>
> > > Mikel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" 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
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en.