Correct the function GenerateName #6

Merged
lx merged 1 commit from Correct_Test_GenerateName into main 2021-07-29 08:02:29 +00:00
Member

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.

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.
erwan added 1 commit 2021-07-26 13:51:43 +00:00
Correct the function GenerateName
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
a53641e773
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.
Owner

Fixes #5

Fixes #5
lx merged commit a53641e773 into main 2021-07-29 08:02:29 +00:00
quentin deleted branch Correct_Test_GenerateName 2021-09-16 13:08:23 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/bottin#6
No description provided.