Fix: Clean player names of unwanted chars (#1008) #1009
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request addresses the issue of unwanted non-standard characters in player names.
The code has been updated to remove these characters and handle cases where the name becomes empty after cleaning.
Motivation and Context
This change is required to ensure that player names are displayed and processed correctly without any non-standard or invisible characters. It fixes the issue where player names could appear empty or contain unexpected characters, improving data integrity and user experience.
Fixes #1008.
How Has This Been Tested?
The changes have been tested by running the application with various player names containing unwanted characters. The output was verified to ensure that the names were cleaned correctly and handled appropriately when empty.
Testing was conducted in a local development environment with a sample database.
The player name processing logic was verified to ensure no adverse effects on other parts of the application.
Output with some debugs:
[Original Player Name: ] [Hex Values: F3 A0 80 A1 F3 A0 80 A1 ] [Cleaned Player Name: ] [Hex Values After Cleaning: ]
Screenshots (if appropriate):
Types of changes
Checklist: