New issue
Advanced search Search tips

Issue 711057 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Payment Request on Desktop Language Support

Project Member Reported by mattgaunt@chromium.org, Apr 12 2017

Issue description

Chrome Version: (copy from chrome://version)
OS: (e.g. Win7, OSX 10.9.5, etc...)

What steps will reproduce the problem?
(1) Go to https://gauntface.github.io/payment-request-doc-demos/src/
(2) Click Right to Left Language button

What is the expected result?
The arabic text to be rendered correctly

What happens instead?
It's not rendered correctly.

Please use labels and text to provide additional information.


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 
Screenshot from 2017-04-12 14:49:22.png
22.2 KB View Download
Cc: rouslan@chromium.org
Status: Assigned (was: Untriaged)
+rouslan@ for advice.

We receive std::string objects for the labels and such from the website. Currently, the code calls base::ASCIIToUTF16(label) to pass the string to the views::Label object. Any insight on how we should handle such strings?
Should be UTF8ToUTF16 instead of ASCIIToUTF16.
The same demo shows correct labels in the expanded list of line items.
Screenshot from 2017-04-20 10:56:57.png
32.2 KB View Download
Status: Started (was: Assigned)
Can't believe I missed that! Going to do a pass to make sure we use UTF8ToUTF16 everywhere it's relevant.
Happens to the best of us ;-)
Status: Fixed (was: Started)

Sign in to add a comment