Closed Bug 542288 Opened 14 years ago Closed 14 years ago

Personas localized pages show garbage characters

Categories

(Websites Graveyard :: getpersonas.com, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: kohei, Assigned: rdoherty)

References

()

Details

http://personas.stage.mozilla.com/ja/gallery/All/Popular

<title> and <h2> contain garbled characters.
They should be "Personas ギャラリー"

Also confirmed at

http://personas.stage.mozilla.com/zh-TW/
Target Milestone: --- → 2.4
I think this is a regression by r61163. Workaround:

Replace htmlentities($string) with htmlentities($string, ENT_QUOTES, 'UTF-8') 

or 

Replace htmlentities($string) with htmlspecialchars($string)
(In reply to comment #1)
> Replace htmlentities($string) with htmlspecialchars($string)

htmlspecialchars also requires charset, so it should be

htmlspecialchars($string, ENT_QUOTES, 'UTF-8')
Assignee: nobody → rdoherty
r61461
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.