Hi,
Here is the RPN formula I propose to you:
i 0 == 1 * key + 47 c >= 32 * 48 c <= 57 c >= && c * 58 c <= 64 c >= && 32 * 65 c <= 90 c >= && c * 91 c <= 96 c >= && 32 * 97 c <= 122 c >= && c 32 - * 123 c <= 32 * + + + + + + +
Comments: : (1) all alphabetical letter is transformed into caps ('a' leads to the same code as 'A'); (2) every special letter is transformed into a blank ('é' leads to the same code a ' ').
You can test it on the following URL:
https://developer.handango.com/RegCode.jsp?siteId=1216
As you may see, the following entered names lead to the same RPN key (00578): 'José Musé' = 'JOSé MUSé' = 'josé musé' = 'jos mus ' = 'Jos Mus ' = 'JOS MUS ' (notice you should enter 2 blanks between 'jos' and 'mus': 1 for the traditional space between first name and surname and 1 for the 'é' replacement. These 2 blanks do not appear clearly here, previewing my message on the forum: I don't know why...)
During the registration process on the PPC (i.e. your game), you just have to warn the user that he must replace all special letters that his name may contain by a blank.
For instance, if my name is 'José Musé" (which is not
), my 2 actions will be the following:
1. On the Handango site, I enter "José Musé" and I receive the key 00578
2. On the PPC, registering the game, I enter "JOS MUS " (because (1) I suppose the chrs accepted in my game are only caps and (2) special letters are not supported by GE): the GetUnlockKey requires... the same code '00578'!
I want to thank here the people of the forum who helped me to come to this solution.