Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #50

Closed
Open
Created Oct 21, 2011 by Administrator@rootOwner

Encoding Errors on Imported Repositories

Created by: DejaAugustine

If I create a project and initialize a fresh, clean repository, everything works great. However, if I create a project and push in an existing, heavily developed local repository, I am encountering the following error when I try to view the commit history:

Encoding::CompatibilityError in Commits#index Showing /var/dev/gitlabhq/app/views/layouts/application.html.haml where line #30 (closed) raised: incompatible character encodings: UTF-8 and ASCII-8BIT```

If I take the same local repository codebase, delete the .git folder and do a fresh init before pushing it to GitLabHQ, everything works fine.

I'm assuming the issue has to do with the fact that this particular repo has been worked on across several OSs and individual machines, and it's quite possible that different commits have different encodings.

I want to be able to use GitLabHQ for a number of projects, but many of them have extensive commit histories and I can't really afford to clean-slate it.

Has anyone encountered this before or have any advice? Is there any way to standardize the encoding on an existing repository?

Assignee
Assign to
Time tracking