Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Problem in format charset #648

Closed
hpcarlos opened this Issue Apr 5, 2012 · 4 comments

Comments

Projects
None yet
5 participants

hpcarlos commented Apr 5, 2012

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 commented Apr 5, 2012

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
Contributor

brodock commented May 5, 2012

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

Contributor

SaitoWu commented May 30, 2012

@vsizov vsizov closed this Jun 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment