Skip to content
Snippets Groups Projects

Added force utf8 encoding

Merged gitlab-qa-bot requested to merge github/fork/Nek-/patch-utf8 into master

Created by: Nek-

Add support for README in french/spanish/german/... Any language with non ascii characters.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Created by: Nek-

    Fix issue #805 (closed) . Should also fix issue #725 (closed) .

    By Administrator on 2012-05-19T10:22:44 (imported from GitLab project)

    By Administrator on 2012-05-19T10:22:44 (imported from GitLab)

  • Created by: brodock

    force_encoding does not fix #725 (closed). I will send a pull request for a #725 (closed) fix soon.

    By Administrator on 2012-05-21T23:13:59 (imported from GitLab project)

    By Administrator on 2012-05-21T23:13:59 (imported from GitLab)

  • Created by: brodock

    Force encoding is not the answer for that problem. You should read Yehuda Katz article about encoding problems with 1.9: http://yehudakatz.com/2010/05/05/ruby-1-9-encodings-a-primer-and-the-solution-for-rails/ If you force encoding, you simple discard every other encoding. It doesn't fix the problem, it just "fix" for the majority, but it stills there. Using charlock_holmes seems to be a better solution, as it will try to identify the encoding first, before "forcing" the correct one.

    I finally setup a Vagrant container for development, and will send a pull request soon with a fix for the problem using charlock_holmes

    By Administrator on 2012-05-26T17:08:11 (imported from GitLab project)

    By Administrator on 2012-05-26T17:08:11 (imported from GitLab)

Please register or sign in to reply
Loading