PyBitmessage icon indicating copy to clipboard operation
PyBitmessage copied to clipboard

UTF-8 in labels causes problems

Open PeterSurda opened this issue 9 years ago • 9 comments

UTF-8 in labels (addressbooks, subscriptions, ...), like umlauts, does not display correctly. Also, it could be that if it is invalid UTF-8, the Bitmessage window does not show at all (one bug reporter), but I cannot reproduce that.

  • [x] Editing a subscription in UI
  • [ ] Editing a subscription in SQL
  • [x] Editing an addressbook entry in UI
  • [ ] Editing an addressbook entry in SQL
  • [x] Editing an address label in UI
  • [ ] Editing an address label in SQL

PeterSurda avatar Feb 25 '16 11:02 PeterSurda

I tried and it seems I can reproduce it.

  1. OK:

a. e.g. adding umlauts in the text of a message + subject works

b. the umlaut is shown (also after receiving when I sent to myself this msg)

but: when I add the umlaut in the address book as description (1) of the BM address:

it discards the text and takes the original text (2) again

(1) e.g. "erkan Nö" (2) "erkan"

nothing more done than above 2 points, so I can at least try those again when a fix would be available

using https://github.com/mailchuck/PyBitmessage v 0.5.7 with commit: 2f9501fa1aafb86cc8d6be1d041abfe1b30c225a

Erkan-Yilmaz avatar Feb 25 '16 16:02 Erkan-Yilmaz

That part I can reproduce too. But one guy reported that his PyBM does not start at all (the main QT thread crashes in rerenderSubscriptions) and that I can't reproduce.

PeterSurda avatar Feb 25 '16 22:02 PeterSurda

@Erkan-Yilmaz can you try now? The UI should be fixed, just left is checking what happens if you manually create invalid utf8 in keys.dat or the database.

PeterSurda avatar Mar 12 '16 10:03 PeterSurda

@PeterSurda I have tested my use case above ( "erkan äöü") OK: "erkan äöü" stays when I switch between tabs BUT: when I restart bitmessage it is again only "erkan"

I am on commit c6b4237

Erkan-Yilmaz avatar Mar 12 '16 11:03 Erkan-Yilmaz

@Erkan-Yilmaz what OS?

PeterSurda avatar Mar 12 '16 18:03 PeterSurda

@PeterSurda I am sending this info right now to you via BM's support mail

Erkan-Yilmaz avatar Mar 12 '16 18:03 Erkan-Yilmaz

I can't reproduce this (Windows and Linux). Are you editing an entry in the addressbook (rather than one of your own addresses)? The black ones in the "Send" tab?

PeterSurda avatar Mar 13 '16 09:03 PeterSurda

yes, I was editing one of the "Address book" entries (1) from the Send tab (not the Address field which holds the BM-address)

(1) which is also called "Label" when one creates a new contact

Erkan-Yilmaz avatar Mar 13 '16 09:03 Erkan-Yilmaz

I'm sorry but I can't reproduce this. I'll postpone this until there is a more reliable way for me to reproduce.

PeterSurda avatar Apr 29 '16 00:04 PeterSurda