Max2Play Home › Forums › Max2Play Development (Ideas, Wishes) › Playername with whitespaces, special characters ( Squeezelite and Multisqueeze)
Tagged: "special characters", Multisqueeze, playername, Squeezelite, whitespaces
- This topic has 1 reply, 2 voices, and was last updated 2 years, 11 months ago by
MarioM Moderator.
-
25. Oktober 2020 at 23:05 #49912
Hi!
Squeezelite and Multisqueeze allows playernames with whitespaces, special characters and mutated vowels like
äöüß()
and so on. Only requirement is to put the name in double quotes at the-n
-Option. For example-n "Test (ÖÄÜ)"
.Max2Play strips them when saving e.g. in
updatePlayername()
with the line$name = preg_replace('=[^a-zA-Z0-9\.\-]=i', '', $name);
.Are there other issues except the missing double quotes in Max2Play squeezlite startup-code?
For/etc/hostname
you could use the preg_replace above, e.g. with replacing whitespaces by hyphens and mutated vowels by usingNormalizer::normalize()
.It would be great to have names with whitespaces, special characters and mutated vowels allowed.
Is ist conceivable, that it can by build in? Or can I help / co-develop the code? What do you think about?
Thanks so far!
Cheers, Matthias
27. Oktober 2020 at 13:11 #49928Hi Matthias,
Special characters, mutated vowels and whitespaces can cause various problems with the system and should therefore be avoided when naming players. We are currently not planning to redesign the code so that such characters can be used without hesitation, as problems can arise at any point. Nevertheless, thank you for the hint and the offer! I will discuss the topic again with our developer.
-
You must be logged in to reply to this topic.