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
  • #9615

Closed
Open
Created Sep 09, 2015 by Administrator@rootOwner

UTF8 encoding issue on Merge Request

Created by: mattseymour

When trying to create a merge request which contains unicode characters in the diff the merge request fails with a 500 error. I have pulled the following from the application log. The error is caused when trying to store the diff into the database.

ActiveRecord::StatementInvalid (PG::UntranslatableCharacter: ERROR:  character 0xe287a7 of encoding "UTF8" has no equivalent in "LATIN1"
: UPDATE "merge_request_diffs" SET "st_commits" = $1, "st_diffs" = $2, "state" = $3, "updated_at" = $4 WHERE "merge_request_diffs"."id" = 207):
  app/models/merge_request_diff.rb:142:in `reload_diffs'
  app/models/merge_request_diff.rb:44:in `reload_content'
  app/services/merge_requests/create_service.rb:17:in `execute'
  app/controllers/projects/merge_requests_controller.rb:107:in `create'
Assignee
Assign to
Time tracking