Project

General

Profile

Actions

Bug #10312

closed

Error reading radio with utf-8 characters in memory name.

Added by Sven Jungmar about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
01/24/2023
Due date:
% Done:

100%

Estimated time:
Chirp Version:
next (py3)
Model affected:
Kenwood TH-F7E
Platform:
Windows
Debug Log:
I read the instructions above:

Description

CHIRP next-20230124 on Windows 10 Home

chirp.wxui.memedit - ERROR: Failed to load memory 16 as error because: 'utf-8' codec can't decode byte 0xf6 in position 3: invalid start byte

Memory contains UTF-8 caharcters which can't be read by Chirp.
16, Enköping
20, Nyköp L
38, Åkersbga
40, Täby Dig
46, Västerås
47, Flen öja


Files

chirp_debug-l2y1e0gg.txt (244 KB) chirp_debug-l2y1e0gg.txt Debug-log Sven Jungmar, 01/24/2023 08:48 PM
Screenshot20230124.PNG (66.2 KB) Screenshot20230124.PNG Mem pos shown in red Sven Jungmar, 01/24/2023 08:50 PM
kenwood_live.py (62.7 KB) kenwood_live.py Dan Smith, 01/26/2023 02:19 AM
chirp_debug-uqx4qf9f.txt (241 KB) chirp_debug-uqx4qf9f.txt log module kenwood_live Sven Jungmar, 01/26/2023 08:34 AM
kenwood_live.py (62.8 KB) kenwood_live.py Dan Smith, 01/26/2023 03:10 PM
Screenshot20230126.PNG (4.65 KB) Screenshot20230126.PNG Sven Jungmar, 01/26/2023 04:09 PM
kenwood_live.py (62.9 KB) kenwood_live.py Dan Smith, 01/26/2023 04:21 PM
chirp_debug-k_6hgvae.txt (232 KB) chirp_debug-k_6hgvae.txt Sven Jungmar, 01/26/2023 04:33 PM
Actions #1

Updated by Dan Smith about 1 year ago

  • Assignee set to Dan Smith
Actions #2

Updated by Dan Smith about 1 year ago

It's actually not UTF-8, which is why it's failing. Can you try this module? Enable developer options in the Help menu, restart chirp, and then File->Load Module and choose this file. Please capture a debug log and attach, whether it works or not.

Thanks!

Actions #3

Updated by Sven Jungmar about 1 year ago

Using the attached module I read the radio (download) and it worked, Swedish characters were displayed correctly. I also tried to add Swedish characters ÅÄÖåäö but they were deleted in Chirp and not sent to radio.
One step forward, thanks.

Actions #4

Updated by Dan Smith about 1 year ago

I meant to attach this last night. This update might allow entering those characters and sending them to the radio. Can you try that and let me know?

Actions #5

Updated by Sven Jungmar about 1 year ago

Can't load (new) module, see attached error message...

Actions #6

Updated by Dan Smith about 1 year ago

Ah right, sorry. Here's a quick hack to try to make that work. If not, we'll need to wait until tomorrow's build.

Actions #7

Updated by Sven Jungmar about 1 year ago

Problem solved!
Thanks,
Sven

Actions #8

Updated by Dan Smith about 1 year ago

Hmm, is it? It looks from your log like perhaps the radio is rejecting the names with special characters. It's hard to know without knowing what you're trying but.. are those characters ending up in the radio?

Actions #9

Updated by Sven Jungmar about 1 year ago

Hmm, actually; editing an existing entry works but adding a new with int. characters doesn't go to the radio. In botch cases it's accepted by Chirp.

Actions #10

Updated by Dan Smith about 1 year ago

Okay, I'm not sure why it would be different for existing vs. new memories. If you create a memory and then edit it later will it accept the international characters? Unfortunately, none of my kenwood live radios support these, so it's difficult to test. I wrote a little simulator, but I can't reproduce any issues with respect to your experience here.

I'm going to go ahead and push the fixes I have, since it clearly improves the situation, but if we can nail down some repeatable behavior, I can try to figure it out.

Actions #11

Updated by Dan Smith about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #12

Updated by Sven Jungmar about 1 year ago

I tested further tonight, now with latest CHIRP 20230131.
It seems that if the first (1st) character in the name is capital ÅÄÖÜË... the writing fails. If it is A-Z, a-z or lowercase åäöüë... it works OK. Capital international characters not in first position is written ok. Very strange indead.

Actions

Also available in: Atom PDF