question

Christoph Potas avatar image
Christoph Potas asked

displayname not unique

Hi, on our new test title, the display name is not unique. im not sure if this is a general problem but UpdateUserTitleDisplayName accept duplicated names

Title: 81834
Account A: 469FB33D1E147580
Account B: 2A5139A7D40F5A2F

Option: disabled

im not sure if this problem exist on our live title, will test in a few days, but on this test title it allow to use already used names.

Note: this might be related to the connected master account ?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Actually, they are not same:

Converting the first account's (469FB33D1E147580) DisplayName to utf-8 would get this result:

\x54\x65\x73\x74\x31\x34\x37\xE2\x80\x8B

However, converting the second account's (2A5139A7D40F5A2F) DisplayName will get the following one:

\x54\x65\x73\x74\x31\x34\x37

Referring to this UTF-8 encoding table https://www.utf8-chartable.de/unicode-utf8-table.pl?start=8192&number=128&utf8=string-literal , \xE2\x80\x8B represents a ZERO WIDTH SPACE, which is the reason why these two display names look identical but actually varies. You should double check the display name user inputted and trim it if necessary before passing it for UpdateUserTitleDisplayName to consume.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Christoph Potas avatar image Christoph Potas commented ·

thanks for finding my mistake^^
solved it by filter all user input by ( removing all invisible ( and uni code ) chars )

Regex.Replace( RawInput, "[^ -~]", string.Empty );

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.