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

Fix for unsupported encodings #115

Merged
merged 1 commit into from
Aug 2, 2015
Merged

Fix for unsupported encodings #115

merged 1 commit into from
Aug 2, 2015

Conversation

dharyk
Copy link

@dharyk dharyk commented Jan 27, 2015

When using mb_convert_encoding, check identified charset against list of available encodings (as mentioned in #107). If none match use US-ASCII if encoding is 7-bit; UTF-8 otherwise.

When using iconv, suppress errors and check if the function returns false.

NOTE: removed the try/catch blocks, since neither mb_convert_encoding nor iconv throw exceptions, in it's place, any (undesired?) error output is being suppressed with @

When using mb_convert_encoding, check identified charset against list of available encodings. If none match use US-ASCII if encoding is 7-bit; UTF-8 otherwise.

When using iconv, suppress errors and check if the function returns false
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.33%) to 89.7% when pulling 886a1fe on dharyk:unsupported_encodings into ba247b8 on tedious:master.

tedivm added a commit that referenced this pull request Aug 2, 2015
@tedivm tedivm merged commit 2255634 into tedious:master Aug 2, 2015
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.

3 participants