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

utf8_encode is deprecated in PHP 8.2 #86

Closed
Findus23 opened this issue Nov 14, 2022 · 4 comments
Closed

utf8_encode is deprecated in PHP 8.2 #86

Findus23 opened this issue Nov 14, 2022 · 4 comments

Comments

@Findus23
Copy link

PHP Deprecated: Function utf8_encode() is deprecated in .../vendor/szymach/c-pchart/constants.php on line 48

define("EURO_SYMBOL", utf8_encode("€"));

If I understand it correctly utf8_encode("€") is the same as "€" (see https://3v4l.org/dERVv), so I think the utf8_encode() can simply be removed.

@szymach
Copy link
Owner

szymach commented Nov 19, 2022

I suppose it is a leftover from when this library files were encoded in ISO-8892 or some other standard. I suppose it would be fine to remove the deprecated function.

@tassoman
Copy link

Looks like this can be closed, because merged and #19343 can be reviewed. Now PHP 8.2 is actual stable version (since a week)

@szymach szymach closed this as completed Dec 14, 2022
@tassoman
Copy link

Hello there, can you confirm it was released in v3.0.16 ?
Thanks!

@szymach
Copy link
Owner

szymach commented Dec 15, 2022

Hello,
See here.

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

No branches or pull requests

3 participants