Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): Encode db dump in UTF-8 without BOM for Windows #13775

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amorphobia
Copy link

Related to #11787

On Windows, the encoding “utf8” actually means “UTF-8 with BOM”. What we need is “utf8NoBOM”. However it’s not available from the Windows 10 built-in PowerShell.

This change suggests WriteAllLines function from the pre-installed .net framework, which uses real UTF-8 encoding by default.

https://learn.microsoft.com/en-us/dotnet/api/system.io.file.writealllines?view=netframework-4.6

The default behavior of the WriteAllLines(String, IEnumerable) method is to write out data by using UTF-8 encoding without a byte order mark (BOM).

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Oct 28, 2024
Copy link
Contributor

github-actions bot commented Oct 28, 2024

📖 Documentation deployed to pr-13775.preview.immich.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:documentation documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants