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

Configuration file support for unicode #49

Open
egelados opened this issue Feb 17, 2023 · 1 comment
Open

Configuration file support for unicode #49

egelados opened this issue Feb 17, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@egelados
Copy link

Congratulations on your great project.

I noticed an issue when the config.yaml contains unicode characters.
For example when using the reset password feature the yaml load and dump works perfectly but the process escapes all unicode chars. Unfortunately this cancels the yaml file human readability.

An simple solution would be to just use the allow_unicode parameter when dumping the config back to the filesystem:

with open('../config.yaml', 'w') as file:
yaml.dump(config, file, default_flow_style=False, allow_unicode=True, sort_keys=False)

How does it sound?
:)

Keep up the good work!

@mkhorasani
Copy link
Owner

Hey @egelados thank you for pointing this out! Sure thing, will look into it and quite probably will add it to a future release. Cheers!

@mkhorasani mkhorasani added the enhancement New feature or request label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants