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

How to set encoding? #58

Closed
AxelTechnology opened this issue Apr 11, 2022 · 1 comment
Closed

How to set encoding? #58

AxelTechnology opened this issue Apr 11, 2022 · 1 comment

Comments

@AxelTechnology
Copy link

How to set encoding for Persist() method?
The file seems to be written always in UTF-8 but in some occasions I have to save it in ANSI.
Thank you.

@fluffynuts
Copy link
Owner

I'm assuming in PeanutButter.INI...

I've just pushed 2.0.72 to nuget.org wherein:

  • a DefaultEncoding can be set on the INIFile object (and the default default is UTF8)
  • Persist methods all have overloads which can take an override encoding (existing methods fall back on DefaultEncoding)
  • Load methods take an override encoding (or fall back on DefaultEncoding)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants