css - How to use Japanese characters for a single page

I've been asked to produce a single page on a client's Wordpress site that has a Japanese translation of key p

I've been asked to produce a single page on a client's Wordpress site that has a Japanese translation of key paragraphs from the site.

The straight copy and paste from the translated text in a Word doc produced mostly accurate results but occasionally I get these characters ます and a few others replaced by

I've been told that the font I'm using likely doesn't have the characters. I then looked for a common Japanese font stack (found in SO):

font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",Osaka, "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;

and tried applying it inline and in the stylesheet but with no joy. How do I apply it to my site? Is it being applied but I need to change region/language? Why can I seem to paste the characters successfully into every other wysiwyg and document?

I've also changed the character encoding throughout my db to UTF8.

Would be really grateful for some help with this!

Thanks, Steve

Update: Thanks Goleztrol and Worm for the quick replies. Just discovered that the Wordpress WysiWyg seems to be the problem. Pasting ます above or below the_content(); works just fine

I've been asked to produce a single page on a client's Wordpress site that has a Japanese translation of key paragraphs from the site.

The straight copy and paste from the translated text in a Word doc produced mostly accurate results but occasionally I get these characters ます and a few others replaced by

I've been told that the font I'm using likely doesn't have the characters. I then looked for a common Japanese font stack (found in SO):

font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",Osaka, "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;

and tried applying it inline and in the stylesheet but with no joy. How do I apply it to my site? Is it being applied but I need to change region/language? Why can I seem to paste the characters successfully into every other wysiwyg and document?

I've also changed the character encoding throughout my db to UTF8.

Would be really grateful for some help with this!

Thanks, Steve

Update: Thanks Goleztrol and Worm for the quick replies. Just discovered that the Wordpress WysiWyg seems to be the problem. Pasting ます above or below the_content(); works just fine

Share Improve this question edited Jan 23, 2015 at 14:15 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Jan 23, 2015 at 13:57 SteveSteve 1314 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

never ever copy text from word document into anything web related. Word documents contain extra styling information which might break the content that you try to copy. If you need to copy test it is best to receive it as a simple text file that can be opened in notepad.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744888876a4599284.html

相关推荐

  • css - How to use Japanese characters for a single page

    I've been asked to produce a single page on a client's Wordpress site that has a Japanese translation of key p

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信