Skip to content

Update iconv names #6234

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

Closed
wants to merge 2 commits into from
Closed

Update iconv names #6234

wants to merge 2 commits into from

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