The IE is using the JRE as the default vm as can be verified in the java console. The same problem occurs in appletview also. Except I am getting question marks instead of squares. With some debugging statements, I can see that the characters are read in ok in unicode. However, it seems that the displaying fonts can't interpret them. I am using the Dialog virtual font in Java which is mapped to simsun.ttc. In theory, that should be able to display the characters, right? Do I have to change the encoding or something?
Thanks Patrick -----Original Message----- From: Derek Ngok [mailto:[EMAIL PROTECTED] Sent: November 17, 2003 7:41 PM To: jdjlist Subject: [jdjlist] RE: I18n with JDK 1.1.8 within an applet Are you sure that IE is using the JRE as the default VM? I suggest you to run the applet in appletviewer first and make sure your settings are correct. Derek > -----Original Message----- > From: Patrick Li [mailto:[EMAIL PROTECTED] > Sent: Monday, November 17, 2003 1:36 PM > To: jdjlist > Subject: [jdjlist] I18n with JDK 1.1.8 within an applet > > > Hi, > > I am trying to create a complex applet that supports Chinese > characters. > They are used to display messages thru Graphics.drawString() and in > various AWT components (not swing). This is what I have done so far: > > - I have Added Chinese font support to IE > - Renamed font.properties.zh to font.properties in JRE's install area > - Used virtual font names with the java program to set font for all > components. > - translated properties file with Chinese characters and used > native2ascii to convert them into unicode > > However, when I run the program in IE. I see squares instead > of Chinese > character. > > Could anyone tell me what else I need to do? > > Thanks > > Patrick > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > http://www.sys-con.com/fusetalk > To unsubscribe from all mailing lists, click: > http://sys-con.com/globaldelete.cfm?email=leave-jdjlist-22083X @mailbox.sys-con.com --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] http://www.sys-con.com/fusetalk To unsubscribe from all mailing lists, click: http://sys-con.com/[EMAIL PROTECTED] --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] http://www.sys-con.com/fusetalk To unsubscribe from all mailing lists, click: http://sys-con.com/[EMAIL PROTECTED]
