[PR #4950] [MERGED] Detect charset and convert non UTF-8 files for display #17562

Closed
opened 2025-11-02 14:05:22 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4950
Author: @lafriks
Created: 9/17/2018
Status: Merged
Merged: 9/29/2018
Merged by: @lunny

Base: masterHead: fix/chardet_view_file


📝 Commits (6)

  • ca7a0e4 Detect charset and convert non UTF-8 files for display
  • a1ee5ed Refactor and move function to correct module
  • f80681b Revert unrelated changes
  • 5c4dac7 More unrelated changes
  • fab01bb Duplicate content for small text to have better encoding detection
  • 92d7a69 Check if original content is valid before duplicating it

📊 Changes

3 files changed (+44 additions, -4 deletions)

View changed files

📝 modules/base/tool.go (+16 -1)
📝 modules/templates/helper.go (+24 -1)
📝 routers/repo/view.go (+4 -2)

📄 Description

Fixes #4879


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4950 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 9/17/2018 **Status:** ✅ Merged **Merged:** 9/29/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix/chardet_view_file` --- ### 📝 Commits (6) - [`ca7a0e4`](https://github.com/go-gitea/gitea/commit/ca7a0e4b5bbd370fffac5e8b798f691830bbe053) Detect charset and convert non UTF-8 files for display - [`a1ee5ed`](https://github.com/go-gitea/gitea/commit/a1ee5edb27526b34746507450a4d49e03f37088a) Refactor and move function to correct module - [`f80681b`](https://github.com/go-gitea/gitea/commit/f80681bc9ccdc4e26c8cdacd71abdcb2bafbd805) Revert unrelated changes - [`5c4dac7`](https://github.com/go-gitea/gitea/commit/5c4dac7286f066dea14c55bdec19e5e266b0aea2) More unrelated changes - [`fab01bb`](https://github.com/go-gitea/gitea/commit/fab01bbb6a4fd657920c4629edd23353f82f6594) Duplicate content for small text to have better encoding detection - [`92d7a69`](https://github.com/go-gitea/gitea/commit/92d7a6973960ede9024b190fa184caf6fc4a63c9) Check if original content is valid before duplicating it ### 📊 Changes **3 files changed** (+44 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `modules/base/tool.go` (+16 -1) 📝 `modules/templates/helper.go` (+24 -1) 📝 `routers/repo/view.go` (+4 -2) </details> ### 📄 Description Fixes #4879 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:05:22 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17562