Handle non-latin characters in the conflict resolve service
requested to merge 427528-the-error-an-error-occurred-while-loading-the-file-happens-when-the-user-try-to-resolve into master
What does this MR do and why?
When receiving the file paths from gitaly for conflict files, we should encode these to utf-8 inorder to compare them later.
To Test:
- Create a project or use an existing project
- Add a file with a non-latin name (e.g.:
テスト.txt
) and commit tomain
- Create another branch off of
main
(e.g.:test-branch
) - Edit and commit
テスト.txt
in the new branchtest-branch
- Go back to the
main
branch; edit and commitテスト.txt
tomain
to create a conflict - Create a merge request from
test-branch
tomain
- The MR will show that there are conflicts. Click the "Resolve Conflicts" button
- It should not allow you to resolve anything
- Switch to this branch
- Reload, and you should have the ability to resolve the conflict
Related to #427528 (closed)
Edited by Marc Shaw