299
Views
4
Comments
Problem in Displaying Chinese Characters
Question

I use REST to retrieve data from Oracle EBS and some columns contain Chinese characters and those characters were not display correctly.


Any suggestions?


Regards,

Alex

2016-04-21 20-09-55
J.
 
MVP

erm, are you using fonts capable of showing them correctly?


afaik, if you use arial, courier you never see the proper chinese characters?

https://www.kendraschaefer.com/2012/06/chinese-standard-web-fonts-the-ultimate-guide-to-css-font-family-declarations-for-web-design-in-simplified-chinese/


thus something like:

font-family: Tahoma, Arial, Helvetica, "Microsoft YaHei New", "Microsoft Yahei", "????", ??, SimSun, STXihei, "????", sans-serif;

2016-07-05 08-00-06
ACHYAU Yau

Thanks.  I got the idea.  However, I have no knowledge of CSS and I have done the following but it is still not working.

1.  Add Font Definition and Font Class in the Theme Style Sheet

2.  Use the style "SimSun_Regular" for the expression and cell


Cheers

Alex

2016-04-21 20-09-55
J.
 
MVP

can you provide a simple oml, so I can check it?


UserImage.jpg
Haifeng Liu

How about the encoding type in DB? Is it GBK (for Chinese). You should convert GBK to UTF-8 (same as your html files) first when you fetch data from DB. "<meta charset="UTF-8">" may need be set in html.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.