Skip to content

incompatible character encodings: UTF-8 and ASCII-8BIT

This issue appeared out of nowhere, i have tried a lot of things but i cannot fix this.

Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
  app/views/layouts/application.html.haml:1:in `_app_views_layouts_application_html_haml__3748375105695129804_72355840'
  app/views/layouts/help.html.haml:4:in `_app_views_layouts_help_html_haml___3257492360708422944_77352400'
  lib/gitlab/middleware/go.rb:16:in `call'

Completed 500 Internal Server Error in 239ms (ActiveRecord: 8.8ms)

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
    1: !!! 5
    2: %html{ lang: "en"}
    3:   = render "layouts/head"
    4:   %body{class: "#{user_application_theme} application navless"}
  app/views/layouts/errors.html.haml:1:in `_app_views_layouts_errors_html_haml__3844612460138501519_61109660'
  app/controllers/application_controller.rb:31:in `block in <class:ApplicationController>'
  lib/gitlab/middleware/go.rb:16:in `call'