Skip to content

Support UTF-8 labels throughout. - #1021

Open
tturocy wants to merge 1 commit into
masterfrom
issue_862
Open

Support UTF-8 labels throughout.#1021
tturocy wants to merge 1 commit into
masterfrom
issue_862

Conversation

@tturocy

@tturocy tturocy commented Aug 3, 2026

Copy link
Copy Markdown
Member

This implements the planned standardisation on UTF-8 labels for all strings (object labels, game titles, game descriptions).

Encoding/decoding is now done consistently in pygambit.

There was inconsistency in the wxWidgets encoding/decoding (between using the system conversion and UTF-8); this has been standardised.

The temporary ASCII-only wxWidgets label editor has been removed.

This implements the planned standardisation on UTF-8 labels for all strings
(object labels, game titles, game descriptions).

Encoding/decoding is now done consistently in `pygambit`.

There was inconsistency in the wxWidgets encoding/decoding (between using the system conversion and UTF-8); this has been standardised.

The temporary ASCII-only wxWidgets label editor has been removed.
@tturocy tturocy linked an issue Aug 3, 2026 that may be closed by this pull request
@tturocy
tturocy requested a review from d-kad August 3, 2026 00:02
@tturocy

tturocy commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

@d-kad as you were involved in the temporary restriction to ASCII, please look through this, especially vis-a-vis test cases.

@d-kad d-kad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good — built and ran the branch.

One observation, attaching screenshots: the spacing rules seem to apply only to U+0020, so a leading U+00A0 (Option+Space on macbook) isn't stripped by LabelTextCtrl::Normalize and is accepted by IsValidLabel.

Image Image Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH]: Support unicode for labels

2 participants