Skip to content

Fix encoding bug#173

Open
tomsommer wants to merge 2 commits into
tedious:masterfrom
tomsommer:patch-3
Open

Fix encoding bug#173
tomsommer wants to merge 2 commits into
tedious:masterfrom
tomsommer:patch-3

Conversation

@tomsommer

Copy link
Copy Markdown
Contributor

in_array() is case-sensitive and $parameters['charset'] is lower-case while mb_list_encodings() is upper-case

in_array() is case-sensitive and $parameters['charset'] is lower-case while mb_list_encodings() is upper-case
@tomsommer

Copy link
Copy Markdown
Contributor Author

Fixes #148

@HighOnMikey

Copy link
Copy Markdown

👍

Although probably might be better to use if (empty(preg_grep('/' . $parameters['charset'] .'/i', mb_list_encodings()))) {}

@shacky

shacky commented Jul 21, 2016

Copy link
Copy Markdown

thanks for bug resolution! it should be merged.

@deemyboy

Copy link
Copy Markdown

so has this fix been merged or not?

@dmromanov dmromanov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looking good.

@dmromanov dmromanov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Output of mb_list_encodings() must be converted to upper-case too, because not all encodings returned are upper-case. For example, "Windows-1251".

@dmromanov dmromanov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good.

@nurtext

nurtext commented Sep 4, 2018

Copy link
Copy Markdown

Will this PR ever be merged & closed?

nurtext pushed a commit to nurtext/Fetch that referenced this pull request Sep 5, 2018
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.

6 participants