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

mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "auto" given #12

Open
mcbmcb0 opened this issue Jan 19, 2024 · 1 comment
Assignees

Comments

@mcbmcb0
Copy link

mcbmcb0 commented Jan 19, 2024

Hi
with php 8.2.4 (on debian 11) i get this error:
mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "auto" given
I thought 'auto' was a valid value, but maybe not with php 8.2
if i add if($encoding == 'auto') $encoding = null; then all works, tho I'm not sure if null is valid <php8.0

...and ...
Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in ...\docx2md.php on line 289
hacky fix by: basename($mdFilename ??"", '.md')
I assume these are php 8.2 changes

thanks for your work!

@u01jmg3
Copy link
Collaborator

u01jmg3 commented Jan 19, 2024

Fancy putting a PR together?

@u01jmg3 u01jmg3 self-assigned this Feb 1, 2024
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

2 participants