Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Problem in format charset #648

Closed
hpcarlos opened this Issue · 4 comments

5 participants

@hpcarlos

The problem in comment in commit or in name of commiter.
My language is Pt-BR, examples of characters ( ç , á, é, ê ...)

Showing /home/gitlabhq/gitlabhq/app/views/commits/_commit.html.haml where line #6 raised:

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

Extracted source (around line #6):

3:     %p
4:       %strong= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "right"
5:   = link_to project_commit_path(@project, :id => commit.id) do
6:     %p
7:       %code.left= commit.id.to_s[0..10]
8:       %strong.cgray= commit.author_name
9:       –

Trace of template inclusion: app/views/commits/_commits.html.haml, app/views/commits/index.html.haml
@hpcarlos

ok! sorry.

the bug description of charset

My version is 2.4.pre, cloned today in 11:54am

i am runing in development

This error in console.

Completed 500 Internal Server Error in 190ms

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
    3:     %p
    4:       %strong= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "right"
    5:   = link_to project_commit_path(@project, :id => commit.id) do
    6:     %p
    7:       %code.left= commit.id.to_s[0..10]
    8:       %strong.cgray= commit.author_name
    9:       –
  app/views/commits/_commit.html.haml:6:in `block in _app_views_commits__commit_html_haml__574073611_109771150'
  app/views/commits/_commit.html.haml:5:in `_app_views_commits__commit_html_haml__574073611_109771150'
  app/views/commits/_commits.html.haml:4:in `block in _app_views_commits__commits_html_haml__208344004_109812170'
  app/views/commits/_commits.html.haml:1:in `each'
  app/views/commits/_commits.html.haml:1:in `_app_views_commits__commits_html_haml__208344004_109812170'
  app/views/commits/index.html.haml:14:in `_app_views_commits_index_html_haml___670847518_110171220'
  app/controllers/commits_controller.rb:20:in `index'


  Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (6.7ms)
  Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
  Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.8ms)

This error in browser

Encoding::CompatibilityError in Commits#index

Showing /home/gitlabhq/gitlabhq/app/views/commits/_commit.html.haml where line #6 raised:

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

Extracted source (around line #6):

3:     %p
4:       %strong= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "right"
5:   = link_to project_commit_path(@project, :id => commit.id) do
6:     %p
7:       %code.left= commit.id.to_s[0..10]
8:       %strong.cgray= commit.author_name
9:       –

Trace of template inclusion: app/views/commits/_commits.html.haml, app/views/commits/index.html.haml

Rails.root: /home/gitlabhq/gitlabhq
Application Trace | Framework Trace | Full Trace

app/views/commits/_commit.html.haml:6:in `block in _app_views_commits__commit_html_haml__574073611_109771150'
app/views/commits/_commit.html.haml:5:in `_app_views_commits__commit_html_haml__574073611_109771150'
app/views/commits/_commits.html.haml:4:in `block in _app_views_commits__commits_html_haml__208344004_109812170'
app/views/commits/_commits.html.haml:1:in `each'
app/views/commits/_commits.html.haml:1:in `_app_views_commits__commits_html_haml__208344004_109812170'
app/views/commits/index.html.haml:14:in `_app_views_commits_index_html_haml___670847518_110171220'
app/controllers/commits_controller.rb:20:in `index'

Request

Parameters:

{"project_id"=>"gitbr"}

Show session dump

Show env dump
Response

Headers:

None
@brodock

The solution I've comented here on #725 - #725 (comment) may help fix this issue

@vsizov vsizov closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.