Microsoft-authentication-library-for-js: Errors with Spanish names in the user object

Created on 16 Mar 2019  路  8Comments  路  Source: AzureAD/microsoft-authentication-library-for-js

Errors with Spanish names in the user object


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Browser:

  • [x] Chrome XX
  • [ ] Firefox version XX
  • [ ] IE version XX
  • [x] Edge version XX
  • [ ] Safari version XX

Library version


Library version: 0.2.4

The problem


The problem is this:

When I use the getUser() method to get the user information if the name has a Spanish character it looks bad.

Example:

Name in AD B2C; Jes煤s
Name obtained with getUser(); Jes脙潞s

This is how it should work


Characters should be displayed correctly with utf-8.

Example:

Name in AD B2C; Jes煤s
Name obtained with getUser(); Jes煤s

Reproduction of the problem

To reproduce this bug is only necessary to have a name with Spanish characters and use the method getUser()

bug community-contribution

All 8 comments

I've been checking and found that there was already a previous thread with the same problem on #264 but why haven't you updated?

@jeverduzco This is being tracked. The existing PR seems to have some build issues in travis, let me check the changes in detail and give you an ETA on when this would be integrated in the dev branch.

Please @sameerag Because it's a really bad experience for my users :(

Any ideas for when this list update? @navyasric
This is very important to me because many of my users complain about it :(

@jeverduzco Our next patch release will have this fix, tentatively in a week. Will update here once the release is made.

712 is now merged to dev @jeverduzco if you want to try the fix. We will soon have a patch release which would consist of this fix among others.

I upgraded to version 1.0.1 and it worked perfectly. Thank you.

@jeverduzco Awesome!

Was this page helpful?
0 / 5 - 0 ratings