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

Added utf-8 support for ftp storage #803

Merged
merged 2 commits into from
Feb 7, 2020
Merged

Added utf-8 support for ftp storage #803

merged 2 commits into from
Feb 7, 2020

Conversation

AlexElizard
Copy link
Contributor

@AlexElizard AlexElizard commented Dec 19, 2019

Please add utf-8 support for ftp storage .

@AlexElizard AlexElizard changed the title Added utf-8 support Added utf-8 support for ftp storage Dec 22, 2019
@jschneier
Copy link
Owner

I see, the default is latin-1. Can we add this as a setting?

@AlexElizard
Copy link
Contributor Author

AlexElizard commented Jan 16, 2020

Yes. Only in the form of setting in the settings.py file, please. Thanks. I opened the opportunity to fix

@jschneier
Copy link
Owner

Please update the PR with the setting.

location = location or setting('FTP_STORAGE_LOCATION')
if location is None:
raise ImproperlyConfigured("You must set a location at "
"instanciation or at "
" settings.FTP_STORAGE_LOCATION'.")
self.location = location
self.encoding = encoding or settings('FTP_STORAGE_ENCODING') or 'latin-1'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be setting( instead of settings(.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Fixed

@jschneier jschneier merged commit ec9579b into jschneier:master Feb 7, 2020
@AlexElizard AlexElizard deleted the patch-1 branch February 8, 2020 07:57
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

Successfully merging this pull request may close these issues.

2 participants