When I include extended-character-set characters in my strict list of characters permitted for my labels the extended characters in the allowed list are ignored and subsequently prevented from being input.
I am using my own MyLabel class which is derived from the Label class and adds a few (hopefully unrelated) customisations. I want to restrict the character set used in these labels to allow basic ascii characters plus some characters from the extended Latin1 character set.
I wrote a function that the MyLabel constructor calls, to set the allowedCharacter variable. It currently looks like this:
allowedCharacters = CharPointer_UTF8 ("\x41\x42\x43\xfd\xfe\xff");
This should limit the inputable characters to: ABCýþÿ
The first three are standard ascii characters and the last three are the last three characters in the extended set.
The MyLabels in my program resultingly accept A, B and C characters, but do not accept the extended characters. If I only specify these extended characters (i.e. remove the ABC codes and just keep \xfd\xfe\xff) then it seems to be interpreted as an empty string and therefore allows all characters. While it is accepting all characters I am able to enter the ý, þ and ÿ characters into my labels successfully.
Is there something I'm missing?