Skip to content

Conversation

nikic
Copy link
Member

@nikic nikic commented Sep 29, 2020

I've renamed $charset to $encoding here, as we use this terminology in mbstring and also htmlspecialchars. iconv itself also has iconv_get/set_encoding. Though it also has input-charset and output-charset options in iconv_mime_encode.

@kocsismate
Copy link
Member

Everything looks good to me.

I've renamed $charset to $encoding here, as we use this terminology in mbstring and also htmlspecialchars

I'm not a pro in this topic, but based on https://stackoverflow.com/questions/2281646/whats-the-difference-between-encoding-and-charset there is some difference between charset and encoding. So are the new usages still ok?

@nikic
Copy link
Member Author

nikic commented Sep 29, 2020

Everything looks good to me.

I've renamed $charset to $encoding here, as we use this terminology in mbstring and also htmlspecialchars

I'm not a pro in this topic, but based on https://stackoverflow.com/questions/2281646/whats-the-difference-between-encoding-and-charset there is some difference between charset and encoding. So are the new usages still ok?

Yes, iconv's usage is consistent with "encoding". Though in practice those words are really synonyms at this point :)

@php-pulls php-pulls closed this in a4331a6 Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants