Issue with Arabic Content in Reports
-
Issue with Arabic Content in Reports
When submitting forms with Arabic content:
The data is successfully stored in the database. However, it does not display properly in the Reports List within the plugin dashboard displayed as dots “
...
.”.because Arabic characters take more than one byte in certain encoding formats, leading to incorrect behavior when using
strlen()
to limit character length.Upon reviewing the plugin’s code, I identified the following logic causing the issue:
if(strlen($_value) > $display_character){ $html .= '<td data-
Proposed Solution: Replace
strlen()
withmb_strlen()
to properly handle multi-byte characters,
- You must be logged in to reply to this topic.