Correct the function GenerateName #6
Loading…
Reference in a new issue
No description provided.
Delete branch "Correct_Test_GenerateName"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The problem was the encode in
name += string(alphabet[])
It takes only 1 byte but the characters like
è
,@
are encoding on several bytes (1 to 4 bytes).The better solution was to create a slice of string, like this we don't have problem about take only one byte instead of 2,3 or 4
bytes.
Fixes #5