Thank you for this. I tested it immediately on my site. Now, during testing I looked at the debug output before I browsed to a page, and the debug output was displaying the wrong characters, hanzi instead of kanji. But, when I browsed to the actual page, the characters were right, presumably because I'm setting the lang attribute in the HTML tag. Thank god I did that.
Still, testing this uncovered a bug in my Traditional Chinese code, so there's that to fix now :)
qingcharles|2 years ago
Still, testing this uncovered a bug in my Traditional Chinese code, so there's that to fix now :)