Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS google signin DisplayName & GivenName & FamilyName are cut when UTF-8 characters in Account #14

Open
Andrey15-0 opened this issue Dec 28, 2017 · 3 comments
Labels

Comments

@Andrey15-0
Copy link

In Unity3d C# code when OnAuthenticationFinished method called trying to get
AddStatusText("Welcome: " + task.Result.DisplayName + "!");
_name = task.Result.DisplayName;
_firstName = task.Result.GivenName;
_lastName = task.Result.FamilyName;

names for my account: GivenName = Андрій, FamilyName = Середа
What I got: GivenName = Анд, FamilyName = Сер

@claywilkinson
Copy link
Contributor

Thanks for pointing this out.

@IneOtherGuys
Copy link

IneOtherGuys commented May 6, 2019

Are there any plans to fix this? My name is Inés and I'm missing the last character in both my given and display name because of the "é". Thanks!
PS: This seems to happen only in iOS. Android works well.

@IneOtherGuys
Copy link

I actually fixed it like this:
In GoogleSignIn.mm line 300: replace
"return src ? src.length + 1 : 0"
with
"const char *chars = [src UTF8String];
return src ? strlen(chars) + 1 : 0;"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants