Skip site navigation (1) Skip section navigation (2)

[pgAdmin III] #258: Search & Replace in Query Tool trips over multibyte characters

From: "pgAdmin Trac" <trac(at)code(dot)pgadmin(dot)org>
To:
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: [pgAdmin III] #258: Search & Replace in Query Tool trips over multibyte characters
Date: 2010-10-17 22:34:04
Message-ID: 045.a82920025342029447438de3c656a4a5@code.pgadmin.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
#258: Search & Replace in Query Tool trips over multibyte characters
------------------------+---------------------------------------------------
 Reporter:  brsa        |       Owner:  dpage  
     Type:  bug         |      Status:  new    
 Priority:  minor       |   Milestone:         
Component:  pgadmin     |     Version:  trunk  
 Keywords:  Query Tool  |    Platform:  windows
------------------------+---------------------------------------------------
 Testing pgAdmin v1.12.1 on Win XP Home & Pro.
 (Bug exists in v1.12 and v1.10 as well.)

 Searchstrings with multibyte characters (like German umlauts) are found
 correctly. But byte-length and character-length get mixed up in the
 highlighting of the matching text.

 That's what seems to happen:
 1.) Count number of _characters_ in the search-string.
 2.) Highlight matching string for as many _bytes_ (instead of characters).

 So If you paste a string of 2-byte characters (in utf8 encoding) and
 search for it:
 öööööööööö
 only characters 1 to 5 get highlighted.

 If you try the same with 3-byte chinese symbols:
 漢族人漢族人
 only the leading third of the search-string is highlighted.

 As a consequence, [Replace] does not work at all with multibyte character
 in the search-string. (Works with multibyte chars in the replace-string,
 though.)

-- 
Ticket URL: <http://code.pgadmin.org/trac/ticket/258>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III

Responses

pgadmin-hackers by date

Next:From: Dave PageDate: 2010-10-17 22:44:23
Subject: pgAdmin III commit: Update the main form to use a wxAuiNotebook. Thisa
Previous:From: Dave PageDate: 2010-10-17 20:30:37
Subject: pgAdmin III commit: Add block folding to the Query Tool and SQL textbo

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group