0

I am running a RoR app that pulls data from some event tables which are using utf8_general_ci as collation.

The problem is that all my pages render stuff like this:

Atat�rk Stadi Nov 02 20:00

So far I have tried: - changing the encoding within application.rb

  • adding

    <meta charset="utf-8" />
    
  • adding

    content="text/html;charset=utf-8"
    
  • all combinations of above tags with all possible relevant encodings that may apply to our content.

Document type is

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I have also tried HTML5 and other variations.

I have not yet tried the iconv solution, would prefer not having to go down that road.

Does anyone have any idea on how to resolve this?

Thank you! N.

4
  • what versions of Ruby and Rails are you using? Commented Nov 2, 2012 at 12:10
  • I have two apps on the same DB, one is using 2.2.2 and one is using 3.2.1, both have the same problem. Commented Nov 2, 2012 at 12:12
  • ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02 Commented Nov 2, 2012 at 12:37
  • do you have a encoding: utf8 in your config/database.yml file? Commented Nov 2, 2012 at 13:03

1 Answer 1

1

do you have a encoding: utf8 in your config/database.yml file?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.