-
Looks like some special characters in the file causing OneDev believing it is of UTF-8 encoding. Can you please reproduce this issue with an example git repo and attach the repo zip for my diagnostics?
-
Thanks for your help.
See the encoding.zip which contains the file above plus a git repo.
-
Name Previous Value Current Value Iterations
empty 3.0.11
-
Pushed your repo and changed the file same way, but OneDev is still detected encoding as ISO-8859-1. What browser are you using? Please also attach the repo after you've made the commit.
-
@bufferUnderrun please see my comments above. I hope to include the fix in 3.0.11 if possible.
-
I did not send the full file above 'AbsenceController.cs' but just a part. With that, i have not reproduce the issue too. I think it's because some specials characters (diacritic) where not in.
In this test-repo.zip, i send your the full content of the file and reproduce the issue. In the last commit, i've just add "TEST" and it changes all other non ASCII char. The original AbsenceController.zip
-
Thanks for the info. It turns out to be a limitation when edit from browser, as browser always sends data in UTF8 format. For instance, github will also convert the encoding as UTF8 after editing a iso8859-1 file like below:

It is also suggested to use UTF-8 as default encoding for your source files in IDE, in order to play well with other tools.
-
Previous Value Current Value Open
Closed
-
Thanks for your answer. I will convert all the file.
-
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
Not Found
|
-
3.0.11 Closed
Hi,
After a commit in onedev, the file encoding is changed from iso-8859-1 to utf8.

So when doing a local diff, the patch is incorrect