Skip to content

Support diffs of UTF-16 encoded text files

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

This is a follow up to gitlab-ce#10745

I created a sample project on gitlab.com that demonstrates this issue, see https://gitlab.com/j-steinblock/utf16-test and added a simple utf-16 file with the content

[List description]
[Description]
 Text=Something else
 FileVersion=10
 RootTable=MyTable
 Units=SCM-Units
 Metric=3

The file starts with FF FE 5B 00 (Hex Code)

Preview for this file is not possible, see: https://gitlab.com/j-steinblock/utf16-test/blob/master/test.txt (Edit link is missing as well)

01-file

A merge request just shows no preview for this file type, see: j-steinblock/utf16-test!1 (diffs)

02-merge-request

Same for compare, see: j-steinblock/utf16-test@master...test

02-merge-request

Edited by 🤖 GitLab Bot 🤖