Ruby on Rails
Thursday, November 8, 2018
You say when you are importing to DB? Usually you should have utf8mb4 as your encoding in that case :)
--
Tales.
On Thu, Nov 8, 2018 at 6:27 AM belgoros <s.cambour@gmail.com> wrote:
--
On Monday, 5 November 2018 20:19:00 UTC+1, fugee ohu wrote:I imported some sms messages with emoticons in them and even though I'm setup for utf8 encoding such as foreign languages, these emoticons raise 'incorrect string value' errorHi, have you defined on the very first line of your ruby file UTF encoding as follows:
# encoding: utf-8
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4bcb0f35-045f-48da-8560-d98da0d7571e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ_sHYNMqNCSYEc5Gkaom%2B%2BHWaJ0r%3DNAmgyqK789GVmN-WH2kQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment