Re: [pgAdmin4][Patch] - Encoding Fixes

From: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][Patch] - Encoding Fixes
Date: 2019-03-01 07:06:03
Message-ID: CAFOhELd=J5eF5qnit4v00Jt9r8PaTNRFvMuk+P=78zGR9Oy2Zg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

Please find the attached patch to support all the supported encodings by
PostgreSQL.

Thanks,
Khushboo

On Thu, Feb 28, 2019 at 10:53 AM Khushboo Vashi <
khushboo(dot)vashi(at)enterprisedb(dot)com> wrote:

>
>
> On Wed, Feb 27, 2019 at 4:57 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:
>
>> Hi
>>
>> On Tue, Feb 26, 2019 at 9:01 AM Khushboo Vashi <
>> khushboo(dot)vashi(at)enterprisedb(dot)com> wrote:
>>
>>> 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.
>>>
>>
>> You've added a couple of new encodings, but it seems to me that we should
>> just add everything that PostgreSQL supports. For example, we now have
>> win1256, but what about 866, 874, 1250, 1251 etc?
>>
>> The full list is at https://www.postgresql.org/docs/11/multibyte.html
>>
>> Any reason not to do that?
>>
> I thought to fix the reported bugs first and after that, I was about to
> add a new ticket to add the remaining supported encodings.
> But as per you, I will add the remaining encodings along with these fixes.
>
>>
>>
> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>

Attachment Content-Type Size
encoding_fixes_v1.patch application/octet-stream 23.8 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2019-03-01 08:57:14 [pgAdmin4][RM4041] Graphical explain plan is not rendering for a query
Previous Message Murtuza Zabuawala 2019-03-01 06:48:56 [RM#4040] Fix Download CSV option on IE11