1 に答える
For the logback html file to display correctly, a custom CSS must be specified with font-family: 'lucida sans unicode', tahoma, arial, helvetica, sans-serif;
(or a similar font) specified where its needed. For instance I have it set for TR.even
and TR.odd
classes.
As an aside, it turns out that eclipse has issues with these character sets. I was unable to get asian characters to print period, even with simple examples such as
Locale locale = new Locale("zh", "CN");
System.out.println(locale.getDisplayLanguage(Locale.SIMPLIFIED_CHINESE));
I ran the same code in NetBeans and it outputs flawlessly.
In the case of eclipse I changed the encoding to UTF-8 wherever possible via system preferences, as well as set the default font to the above font with no resolution. I even went so far as to download a new copy of eclipse, extract it to a new directory and create a new workspace before setting everything to UTF-8/changing the font and then creating a test case, again with no resolution. For NetBeans no change was required.
--EDIT--
Also please note this seems to be a windows issue only - My home development machine is Linux and it ran the above code perfectly with no alterations to preferences and using a new install of Eclipse.