UTF-8 encoding seems to be broken

Bug #215842 reported by Chris Gregan
14
Affects Status Importance Assigned to Milestone
Ubuntu Mobile Edition
Confirmed
Medium
Unassigned

Bug Description

<Build: UME Daily 9/4>
<Environment: Xephry>

Summary:
UTF-8 encoding does not seem to be working properly. Asian language fonts are resolved incorrectly.

Steps to Reproduce:
1) Launch Browser
2) Set Encoding to UTF-8
3) Browse to www.agri-china.cn

Expected result:
Page is displayed with proper characters like desktop version of Firefox

Actual result:
Characters are corrupted (See attached screenshot)

Revision history for this message
Chris Gregan (cgregan) wrote :
Changed in ubuntu-mobile:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Zhao Fan (fan-zhao) wrote :

We met similar issues before, but it was solved after we installed the asion-font packages. Are you sure you have installed all those asion-font packages? Just FYI.

Revision history for this message
cwong1 (carl-wong) wrote :

Chris,

Please make sure the image has the asian-font installed. Without it, you will see the problem. I tested it on my system and it works fine.

When you create the image, be sure to put a check mark on the asian font selection.

Changed in ubuntu-mobile:
status: Confirmed → Invalid
Revision history for this message
Chris Gregan (cgregan) wrote :

Steven,
We need to make sure the font package is included in the image

Changed in ubuntu-mobile:
assignee: nobody → stevenk
status: Invalid → Confirmed
Revision history for this message
Emmet Hikory (persia) wrote :

It appears the issue is that the build doesn't set LANG anywhere, so the system is defaulting to POSIX, which isn't a UTF8 locale. The easiest way to fix this is likely to ship an /etc/default/locale in ume-config-common that specifies some UTF8 locale (e.g. en_US.UTF8). I'll attach a patch later, unless someone is especially motivated beforehand.

Revision history for this message
Emmet Hikory (persia) wrote :

The attached debdiff just ships the extra configuration file, and forces a UTF8 locale. This allows display of UTF8 characters cleanly.

Revision history for this message
Dave Morley (davmor2) wrote :

Still seems broken on http://www.njstar.cn :(

Revision history for this message
Loïc Minier (lool) wrote :

Needs a change in mobile-meta in Ubuntu I guess

Changed in ubuntu-mobile:
assignee: Steve Kowalik (stevenk) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.