Skip to content

fix encoding of file edit#2881

Merged
samuelhwilliams merged 4 commits into
pallets-eco:masterfrom
samialfattani:fix/edit-files
May 15, 2026
Merged

fix encoding of file edit#2881
samuelhwilliams merged 4 commits into
pallets-eco:masterfrom
samialfattani:fix/edit-files

Conversation

@samialfattani

Copy link
Copy Markdown
Contributor

In the FileAdmin we can allow the user to edit the text files. However, the file can't save non-ascii characters such as emojis🤨. This PR is raised to enable editing files with support of UTF-8 encoding.

@samialfattani samialfattani marked this pull request as ready for review April 27, 2026 01:36
@samuelhwilliams

Copy link
Copy Markdown
Contributor

Just to check my understanding, this is only for local file editing right - not azure or s3?

Also I think the dummy file rename is not an intended part of this PR - could you remove that change please? 🙏 I think that's a side effect of some test failures, which isn't ideal, but we shouldn't bring that rename in

@samialfattani

samialfattani commented Apr 28, 2026

Copy link
Copy Markdown
Contributor Author

this is only for local file editing right - not azure or s3?

Yes

Also I think the dummy file rename is not an intended part of this PR

I don't know what renaming that u r refferring to ? I didn't rename any file. if you mean examples/bootstrap4/files/dummy.txt and examples/bootstrap4/files/d1/dummy2.txt ,then those are added just allow test this function in the example. i.e. the is no any unit test will be affected

@ElLorans

Copy link
Copy Markdown
Contributor

I don't know what renaming that u r refferring to ? I didn't rename any file. if you mean examples/bootstrap4/files/dummy.txt and examples/bootstrap4/files/d1/dummy2.txt ,then those are added just allow test this function in the example. i.e. the is no any unit test will be affected

It's the first edit: https://github.com/pallets-eco/flask-admin/pull/2881/changes#diff-984cb167561ffd569fa92ae3e3308dc489e4ef7ebe0c4a087aa6b81c70701244

@samialfattani

Copy link
Copy Markdown
Contributor Author
  • could you remove that change please? 🙏

done

@samuelhwilliams

Copy link
Copy Markdown
Contributor

Looks good - thanks.

Could you include a line update under 'bug fixes' to the changelog please? 🙏

@ElLorans

Copy link
Copy Markdown
Contributor

Looks good - thanks.

Could you include a line update under 'bug fixes' to the changelog please? 🙏

maybe it's a tiny bit easier if we merge #2886 first so that we have the new section in the changelog

@samialfattani

Copy link
Copy Markdown
Contributor Author

maybe it's a tiny bit easier if we merge #2886 first so that we have the new section in the changelog

#2886 is merged, can we merge this one ?

@samuelhwilliams

Copy link
Copy Markdown
Contributor

Yep, this looks fine to get in. Please can you add a line to the changelog 🙏

@samialfattani

Copy link
Copy Markdown
Contributor Author

Yep, this looks fine to get in. Please can you add a line to the changelog 🙏

done

@samuelhwilliams samuelhwilliams merged commit 97a093b into pallets-eco:master May 15, 2026
12 checks passed
@samialfattani samialfattani deleted the fix/edit-files branch May 16, 2026 05:14
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants