question

Claus-5366 avatar image
0 Votes"
Claus-5366 asked AntoineFAVREAU-6711 edited

Azure AD B2C translations in user flows encoded (escaped) and so not displayed correctly to user

Using Norwegian translation I see that the characters æ, ø and å are escaped (encoded).

For example å is encoded as: å

The user sees the encoded string in the login and not the correct character, such as this:

<div id="emailVerificationControl_success_message" aria-hidden="false" role="alert" aria-label="E-postadressen er bekreftet. Du kan n&amp;#229; fortsette." style="display: inline;">E-postadressen er bekreftet. Du kan n&amp;#229; fortsette.</div>

In the translation files it is not encoded. To make this even more of a problem I can't override the above string with my own custom translation to work around it. I have tried but to no avail.

Do translations need to be encoded? It would be better if they were not, then we could also include links in the text to such things as terms and privacy compliance documents.

azure-ad-b2c
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi there,

any update on this problem ? Still having this encoding pb with :
- Ocean Blue template
- 2.1.4 page layout version
- recommanded signin signup user flow
- page with errors : forgot password
86929-capture-decran-2021-04-12-a-154759.png


0 Votes 0 ·
amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered amanpreetsingh-msft edited

Hi @Claus-5366 · Thank you for reaching out.

This is a known issue with the page layout versions (2.1.0 and 2.1.1) and is already reported to the product team. Please try using page layout version 2.1.2.

If you still face this issue, as a workaround you can use page layout version 1.2.0 or lower version.

If you are using User Flow, you can use Standard User flow which supports layout version 1.2.0 and lower versions.

If you are using Custom policy, you need to update Data URI parameter under <ContentDefinition Id="api.signuporsignin"> to use version 1.2.0 as shown below:

 <DataUri>urn:com:microsoft:aad:b2c:elements:contract:unifiedssp:1.2.0</DataUri>

Read More about page layout versions: https://docs.microsoft.com/en-us/azure/active-directory-b2c/page-layout


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreRippstein-1807 avatar image
0 Votes"
AndreRippstein-1807 answered

Hi all

We are using User Flow with the default page layout template "Ocean Blue". Even with the newest page layout version 2.1.4 (as of writing this post) the french translation of words like "Numéro de téléphone" does not work correctly when they appear in a link <a> tag.

83229-encodingerror.png


Can you please fix that issuse in near time?

See also here: azure-ad-b2c-custom-policy-translations-encoding-i.html
https://docs.microsoft.com/en-us/answers/questions/163987/azure-ad-b2c-custom-policy-translations-encoding-i.html



encodingerror.png (41.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.