Hi,
Please find the attached patch to fix the encoding related issues.
#3992 - View data causes errors with DB encoding EUC_JIS_2004
#3982 - Encoding Problem with PGAdmin 4.2
#3911 - Data output does not display Arabic in WIN1256 encoding database
- The CSV download for the same encoding has also been fixed.
I have tested the patch on Python 2.7, 3.5, 3.6 and 3.7.
Thanks,
Khushboo