[PR #197] [MERGED] feat: webui editing support multiple encodings #513

Closed
opened 2026-04-08 16:53:14 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/197
Author: @sigoden
Created: 3/17/2023
Status: Merged
Merged: 3/17/2023
Merged by: @sigoden

Base: mainHead: feat-editor


📝 Commits (1)

  • 8b37371 feat: webui editing support multiple encodings

📊 Changes

1 file changed (+20 additions, -2 deletions)

View changed files

📝 assets/index.js (+20 -2)

📄 Description

If you open a file with non-UTF8 encoding using the edit button, it may display as garbled text.

This PR attempts to convert the file into UTF8 encoding for editing.

Supported encoding: https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings


🔄 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/sigoden/dufs/pull/197 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 3/17/2023 **Status:** ✅ Merged **Merged:** 3/17/2023 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat-editor` --- ### 📝 Commits (1) - [`8b37371`](https://github.com/sigoden/dufs/commit/8b373717c53e587e48b4bbf93769a371e53f04ee) feat: webui editing support multiple encodings ### 📊 Changes **1 file changed** (+20 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `assets/index.js` (+20 -2) </details> ### 📄 Description If you open a file with non-UTF8 encoding using the edit button, it may display as garbled text. This PR attempts to convert the file into UTF8 encoding for editing. Supported encoding: https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:14 +03:00
zhus closed this issue 2026-04-08 16:53:14 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#513