[pgAdmin III] #258: Search & Replace in Query Tool trips over multibyte characters
От | pgAdmin Trac |
---|---|
Тема | [pgAdmin III] #258: Search & Replace in Query Tool trips over multibyte characters |
Дата | |
Msg-id | 045.a82920025342029447438de3c656a4a5@code.pgadmin.org обсуждение исходный текст |
Ответы |
Re: [pgAdmin III] #258: Search & Replace in Query Tool trips over
multibyte characters
|
Список | 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
В списке pgadmin-hackers по дате отправления: