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

Incompatibilidade PHP 8.3 no danfCe - Function utf8_decode() is deprecated #605

Open
rodrigomgrassioto opened this issue May 28, 2024 · 1 comment

Comments

@rodrigomgrassioto
Copy link

Boa tarde, estou recebendo o seguinte erro ao tentar gerar o DANFCE.

"Erro identificado 8192: 'Function utf8_decode() is deprecated' D:\\laragon600\\www\\levoJa-backend\\vendor\\nfephp-org\\sped-da\\src\\Legacy\\Pdf.php [linha:895]"

Uma sugestão seria atualizar os utf8... para:
utf8_encode($data) para mb_convert_encoding($data, 'ISO-8859-1', 'UTF-8')

utf8_decode($data) para mb_convert_encoding($data, 'UTF-8', 'ISO-8859-1')

Gratidão

@rodrigomgrassioto
Copy link
Author

Boa tarde.
Não tinha visto que tinha saido a versão 1.1.6.
Estava utilizando a 1.1.5
Atualizei e agora parece que está ok.

Muito obrigado

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

1 participant