yajra / laravel-datatables

jQuery DataTables API for Laravel
https://yajrabox.com/docs/laravel-datatables
MIT License
4.77k stars 858 forks source link

fix: Prevent error when PHP extension iconv not enabled. #3098

Closed sangnguyenplus closed 1 year ago

sangnguyenplus commented 1 year ago

This PR will fix error when PHP extension iconv not enabled, so we can't use function iconv().

Call to undefined function Yajra\DataTables\iconv()
 {"userId":1,"exception":"[object] (Error(code: 0): Call to undefined function Yajra\\DataTables\\iconv() 
at .../vendor/yajra/laravel-datatables-oracle/src/QueryDataTable.php:867)
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

yajra commented 1 year ago

Released on v10.11.1 🚀 Thanks!