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

(#FM-6068) allow file encoding to be specified #726

Merged
merged 2 commits into from
Mar 13, 2017

Conversation

GeoffWilliams
Copy link
Contributor

Add a new parameter encoding to allow non UTF-8 files to specify a file encoding. This prevents receiving the error message "invalid byte sequence in UTF-8" when special characters that are not UTF-8 encoded appear in the input stream, such as the copyright symbol.

Add a new parameter `encoding` to allow non UTF-8 files to specify a file encoding.  This prevents receiving the error message "invalid byte sequence in UTF-8" when special characters that are not UTF-8 encoded appear in the input stream, such as the copyright symbol.
@tphoney
Copy link
Contributor

tphoney commented Mar 1, 2017

Thanks for the PR, would it be possible to add some tests around this new functionality, and add a little bit of text into the readme. This looks really useful 👍

@tphoney
Copy link
Contributor

tphoney commented Mar 1, 2017

@pmcmaw is this something that you could look over

@pmcmaw
Copy link
Contributor

pmcmaw commented Mar 1, 2017

@tphoney looks good to me, happy for merge when tests and docs are in.

Added docs and tests as requested
@GeoffWilliams
Copy link
Contributor Author

@tphoney and @pmcmaw - tests added and documentation copy pasted from source code to readme. I'm not sure what I can test for other then the ability to accept the parameter so I just tested that - thanks

@pmcmaw pmcmaw merged commit 46e3a23 into puppetlabs:master Mar 13, 2017
@pmcmaw
Copy link
Contributor

pmcmaw commented Mar 13, 2017

@GeoffWilliams Thank you for your contribution, it is much appreciated.
:-)

sathieu added a commit to sathieu/puppetlabs-stdlib that referenced this pull request Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants