Skip to content

proposed fix for https://github.com/alexeypetrushin/vos/issues/4#5

Open
momolog wants to merge 1 commit intoal6x:masterfrom
momolog:force-encoding
Open

proposed fix for https://github.com/alexeypetrushin/vos/issues/4#5
momolog wants to merge 1 commit intoal6x:masterfrom
momolog:force-encoding

Conversation

@momolog
Copy link

@momolog momolog commented May 9, 2013

this cures the "incompatible character encodings" exception by forcing strings being written into ASCII-8BIT encoding

al6x#4
by forcing strings being written into ASCII-8BIT encoding
@momolog
Copy link
Author

momolog commented May 9, 2013

Btw. I am by no means an expert on character encodings and their treatment in ruby.
This just happens to fix the above mentioned issue for me, so that both text and binary files get written without errors.

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.

1 participant