Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character set bug when transferring between radio and companion #4603

Closed
1 task done
Freddan-67 opened this issue Feb 5, 2024 · 11 comments · Fixed by #4670
Closed
1 task done

Character set bug when transferring between radio and companion #4603

Freddan-67 opened this issue Feb 5, 2024 · 11 comments · Fixed by #4670
Labels
bug 🪲 Something isn't working companion Related to the companion software

Comments

@Freddan-67
Copy link

Freddan-67 commented Feb 5, 2024

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Other (Please specify below)

Current Behavior

The bug happens when transferring models back and forth between firmware and companion (windows).
2.9.3 in both firmware and companion
I got a model label called "Sjö" (swedish for sea as in seaplane)
When transferring to companion the label gets duplicated to "SjÃ" and "Sjö". The models gets moved from the label Sjö to "SjÃ".
When transferring back to firmware I got two labels instead of one.

Expected Behavior

Labels with international character set is kept intact when transferring back and forth between companion and firmware

Steps To Reproduce

Create a label in the companion with international characters, example "Sjö"
Transfer models and settings to the radio
Assign a model to that label in the radio
Transfer models to companion
Two labels exists "SjÃ" and "Sjö"

Version

2.9.3

Transmitter

RadioMaster TX16S / TX16SMK2

Operating System (OS)

Windows

OS Version

Windows 11 64bit

Anything else?

bug-companion-characterset

@Freddan-67 Freddan-67 added bug 🪲 Something isn't working triage Bug report awaiting review / sorting labels Feb 5, 2024
@pfeerick pfeerick changed the title Character set bug in opentx-2.9.3 / companion 2.9.3 Character set bug when transferring between radio and companion Feb 5, 2024
@pfeerick pfeerick added the companion Related to the companion software label Feb 5, 2024
@pfeerick
Copy link
Member

pfeerick commented Feb 5, 2024

I suppose I should start with "How did you enter a label of Sjö in the first place?" 😆

And then we can work from there...

@Freddan-67
Copy link
Author

Freddan-67 commented Feb 5, 2024

I suppose I should start with "How did you enter a label of Sjö in the first place?" 😆

And then we can work from there...

I actually don't remember, but as far as I can tell, the only way I can find the possibility to enter international characters is from label manager in EdgeTX Companion, where I can right click, and then Create Label, and freely name it using windows characters.
Just to see what i got, I tried "åÅäÄöÖ" for all Swedish int. characters, but then that label placed topmost, and the
model selector in EdgeTX got busted and I couldn't even switch model.

I have updated the original description to match the actual use case.

This is how it looks after two more syncs (read models, write models, read models, write models from CompanionTX)
EdgeTX_int_chars
I think I need to rename that label, because it keeps getting worse.

Ver from command line in windows say "Microsoft Windows [Version 10.0.22621.3007]"

@Freddan-67
Copy link
Author

For any developer to test this:
Test 1:
Create a label "Sjö" as in the description
Transfer to the radio
Transfer back to the companion
Make sure "Sjö" didn't duplicate.

Test 2:
Create two models for instance in the companion
Right click on label manager and create a label. I placed it first among the labels.
Name the label "åÅäÄöÖ"
Transfer to the radio
Now try the model picker in EdgeTX.
Expected behaviour: The model picker can select any model
Actual behaviour: The model picker don't work

@philmoz
Copy link
Collaborator

philmoz commented Feb 6, 2024

The radio firmware does not support unicode characters - ASCII only I'm afraid.

Companion should probably be updated to not allow unicode in label / name fields.

@Eldenroot
Copy link
Contributor

This ugly bug took me 2 hours of my life...had to recreate the complex model from scratch

@Eldenroot
Copy link
Contributor

We should disable all non-english characters and symbols in model setting...

@elecpower
Copy link
Collaborator

Hi @philmoz. Companion does have a validator for names however it has been turned of or is inconsistent between fields. Can you please provide me with the currently supported characters for B&W and colour radios. Thanks.

@3djc
Copy link
Collaborator

3djc commented Feb 19, 2024

BW allow only basic character set (English), even for localized firmware

@philmoz
Copy link
Collaborator

philmoz commented Feb 19, 2024

As far as I know there is no validation on name entry; but only ASCII characters can be entered on the radio.

@elecpower
Copy link
Collaborator

When editing B&W names the radio sim GUI validation only allows space hyphen a-z A-Z 0-9. However as screenshot below from X9D+ they can display an extended set (albeit maybe not all as I have not tested every character possible in colour editor). Should valid B&W character set be extended?

screenshot_tx16s_24-02-20_17-21-55

screenshot_x9d+_24-02-20_17-23-24

Companion validation could be changed to have validation based on the current radio profile ie colour vs B&W.

The next issue is should invalid characters be filtered out when parsing the yaml files?

@3djc
Copy link
Collaborator

3djc commented Feb 20, 2024

A couple more math chars could be added to BW names, not sure they should be tho,

There was a request for '.' that made sense: #4618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working companion Related to the companion software
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants