Displaying Asian characters in an AWT applet

I want to display texts in different Asian languages (Chinese, Japanese, and Korean). The localized texts are correctly displayed by the applet if I use a font like Arial Unicode MS that supports all Asian Unicode characters. But I can not use this font for display the text because even on a Windows PC I can not be sure that this font is available. The alternative seems to be to use language dependent different fonts but I could not find comprehensive Information which font to use with which language. I thought also about the alternative to use a logical font name and adjust the font.properties file but the applet has to work also with the Microsoft JVM and I could not find any information about changing the font.properties for this VM. I also think that not every user of this applet is willing to adjust the font.properties. What is the best solution to support multiple Asian languages in the output of an applet?
I am new to the problem of localization of Java applets so maybe this question sounds very simple for more experienced programmers.
Thank you in advance for your help.
Roland

mswanson, I sincerely appreciate you posting your
solution here for all of us to read. However, I
wouldn't summarize downloading and installing a 24 mb
font as "doing nothing", as you seem to state here.I could have worded it better. When I said, "do nothing except..." I was refering to the font.properties file. In fact, if you re-read the previous sentence you will see I started it with, "wrt font.properties...". "wrt" means "With Respect To".
Also, the referenced page does not provide a link for
downloading the font, as it seems to imply.My posting implied no such thing.
So, anybody know if this is possible for the Arial
Unicode MS font or any other comparable font? Any
other ideas addressing the same problem?The HTML page I linked to contains a paragraph, "Windows 95, 98, 2000, XP, 2003 Fonts" and its first sentence contains a link to get the font - and you can derive all of your legal answers from that link as well (microsoft.com).
Cheers.

Similar Messages

  • Displaying Asian characters on Solaris platform?

    I have a java application that can display Chinese, Japanese, Korean & Taiwanese (CJKT) on a Windows platform. It is able to display these characters on Windows because i have installed the CJKT locales and have modified the font.properties file to provide the necessary font mappings for the CJKT charsets. But, when i do the same modifications in Solaris (i.e. install the locales & modify the font.properties to provide mappings to various fonts that support the CJKT charsets) and run the application, i am not able to see the CJKT characters. The CJKT characters are displayed as boxes when the application is run in the en_US.ISO8859-1 locale.
    Could someone please suggest what can be done to enable the display of CJKT characters on an ISO8859-1 locale?
    It seems Solaris has locale-specific font installation. Is there any way a font from one loacale (say japanese) can be used in the other i.e. system locale (say korean) to display characters of the first locale (japanese)?

    Thanks, but it does not answer the question.
    I already have the required locales installed. It is just that i'm not able to display Asian characters on an English locale. I am using the Java logical font (serif), and the font.properties does map it to the various fonts that support the CJKT (Chinese, Japanese, Korean & Taiwanese) charsets, but still the application is unable to display the CJKT characters. It seems that java makes use of the X11 fonts and they happen to be installed in separate directories, one for each locale. This could be the reason why the other fonts are not available in the ISO8859-1 locale.
    Is there any way we can map use the fonts of other locales by making use of the java logical font?

  • ITunes 10.1.6.7 update has broken my foreign font display - Asian characters are now squares. How do I fix this?

    The iTunes 10.1.6.7 update has broken my foreign font display - Asian characters are now squares.
    They are fine on my iPhone, copying to other documents & through the Last FM scrobbler, yet iTunes shows songs incorrectly. I've fiddled with the ID3/Unicode settings - nothing changes.
    For example: iTunes shows a bunch of squares, yet when I copy and paste them here it becomes ~  일렉트로보이즈
    This was not a problem earlier - everything was fine in the four years or so I've used iTunes until, I believe, this update. If it was not the update, I'm not sure what else it could be?
    Any suggestions on how to fix this? Thank you!

    Thank you so much! I vigorously searched around these parts and the general internet before posting and found nothing - it's so simple, too
    Hahaha, turns out it was Windows, not iTunes, that broke my font

  • New iTunes update (10.6) not displaying asian characters correctly.

    Just updated my iTunes to 10.6 and the new version is not displaying the asian characters in the artist or song titles. They are appearing in the album. Have restarted my computer multiple times.

    Same issue going on for me. Like daskaea said, it doesn't show up in the album grid, but shows up fine everywhere else. I personally am encountering this issue for Chinese, Japanese, and Korean scripts.
    Attempts to clear the name and re-enter it manually also do not work.
    Anyone have any ideas?

  • Itunes not displaying asian characters correctly

    my song collection tags will display just fine when i'm just browsing files through finder.
    however, when i import these songs to itunes, characters are all garbled up when it is in asian characters like korean and japanese..
    is there a way to fix this?
    in windows machine this is not a problem.

    Same issue going on for me. Like daskaea said, it doesn't show up in the album grid, but shows up fine everywhere else. I personally am encountering this issue for Chinese, Japanese, and Korean scripts.
    Attempts to clear the name and re-enter it manually also do not work.
    Anyone have any ideas?

  • Itunes won't display Asian Characters (Korean, Japanese, and Chinese)

    For some reason, with the most recent update to iTunes, my library is no longer properly displaying Korean characters. It is instead replacing them with boxes. It was and has worked fine for the longest time and I haven't made any other changes that would affect the language packs with my windows 7 64bit. However, when I play a song in iTunes and I have MSN Messenger running, the messenger will correctly display the current song I'm listening. I'm just hoping that if I sync my iPhone with my library, these characters will not appear as squares there as well. I've seen suggestions for switching my operating system language setting to Korean, but as I'm not completely fluent I'd hate to get stuck not knowing how to navigate my way around because I can't read/understand something. Can someone please find a solution for this.

    I didn't have the problem of showing boxes, but I had a similar problem of the korean characters showing in symbols. To fix, I (1) right clicked on the song. (2) Chose Convert ID3 Tags. (3) Checked "Reverse Unicode" Box, then hit "OK". You can highlight as many songs as you want at once and still perform the same thing, to save you time.
    Hope this helps you.

  • Displaying Asian Characters/Other Fonts

    I'm having trouble trying to display other fonts/asian fonts in my SWING application. I know this has probably be asked to death, but here's my scenario.
    I don't want to modify the font.properties file if possible because this is a SWING applet. I'm trying to use the "Arial Unicode MS" font from Windows to display some unicode characters, but all I get is the dreaded square boxes.
    I've tried to access the GraphicsEnvironment.GetLocal.... but I get a security error for a missing class (I'm using JRE1.3 on Windows2k).
    Here's a snippet of my code:
    UIManager.put("Label.font", new Font("Arial Unicode MS", Font.PLAIN, 40));                
    JFrame frame = new JFrame("Test Window");
    final JLabel label = new JLabel("\u88B9 alcsnjdfd \uBA85\uC554\uBE44");
    frame.getContentPane().add(label);
    What am I doing wrong?

    HI,
    this article might help you:
    http://www.onjava.com/pub/a/onjava/2001/04/12/internationalization.html?page=1

  • How can I display East Asian characters in MediaSour

    I am using Windows XP SP2 Chinese Traditional (Taiwan) edition, although I li've in the US.
    My system setting is by default Chinese Traditional, and I have enabled East Asian language support for Chinese, Japanese, and Korean.
    However, Creai've MediaSource has trouble displaying such East Asian characters, most of them look like random code.
    At the same time Windows Media Player can display all the music info just fine.
    I have a very large collection of Chinese, Japanese, and Korean music, so this function is very important to me.
    Please help if possible.
    I've read some previous posts about such issues, but most of them seem to involve the English version of Windows which is not in my case.
    Thanks in advance.

    khaidoba wrote:
    I don't know why, but whatever I do, I can't seem to get the East Asian characters to work at all. I tried the control panels stuff, but when I use the "Get Info" thing before ripping a CD in MediaSource, I still get random characters.
    Go to MediaSource's Tools->Settings->Audio CD/Rip setting page. In there, you can then set a language to be used for CDDB info. Just try and error with the different language settings (use CDDB, use OS, or use a specifc language) and one of them will be the correct one. You may need to set a different language setting for different CDs.

  • The final solution to greek characters in AWT applets(????)

    OK. I have searched the whole web and asked whoever I knew. The question was simple: How do I show greek characters in a TextField in an AWT Applet? Some people said that I should change the font properties inside MY jre/lib installation but then I want EVERYONE and not just ME seeing the greek characters! Adding a greek font into the applet's jar was another "solution" but who wants to have an applet of about 2MBs? So I think I have come up to the answer ... ONLY with jre > 1.4.0 somebody could handle greek characters in AWT Applets without trooble! If somebody has managed to show and handle greek characters in a TextField inside an AWT Applet (which I doubt), I would like to know EXACTLY HOW as I am tired of non-working "solutions"! I hope this post saves you from a lot of time searching for the HolyGrail

    I haven't worked with a TextField but I worked with a JTextField. My solution wasn't very straightforward but it did the job.
    I used this solution in order to work with linux, but you must add an if
    statement to check the OS.
    If your problem was how to view Greek characters in a non internation version of
    Java, then as far as I know, you cannot! Also JDK 1.3.1_01 and j2re 1.4.0_01
    use a different way of loading system fonts, so with the latter you cannot use system fonts unless you put them in you java directory.
    (I use linux so don't be surprissed if these work different in windows)
    import java.io.*;
    public class JTextFieldGr extends javax.swing.JTextField {
    public JTextFieldGr() {
    super();
    myInit();
    public JTextFieldGr(String text) {
    super(text);
    myInit();
    public void myInit() {
    addKeyListener(new java.awt.event.KeyListener() {
    public void keyTyped(java.awt.event.KeyEvent evt){
    try{
    String tmp=""+evt.getKeyChar();
    String uk=new String(tmp.getBytes(),"ISO-8859-7");
    evt.setKeyChar(uk.charAt(0));
    }catch(UnsupportedEncodingException e){
    e.printStackTrace();
    public void keyPressed(java.awt.event.KeyEvent evt){
    public void keyReleased(java.awt.event.KeyEvent evt){
    }

  • Asian characters displaying in my english language PDF.

    This morning I opened a PDF and got a message that I needed to install a language pack.  I installed the asian language pack as requested and when I opened my PDF there were asian characters displaying in my english language PDF.  How do I fix this issue?

    Very difficult to say without seeing the actual PDF.  If it is not confidential, can you share it (or a similar sample PDF) with the forum: https://forums.adobe.com/thread/1408375

  • Itunes just started displaying menus in asian characters.  How can I get back to english?

    Itunes just started displaying menus in asian characters.  How do I get them back to english?

    iTunes: Changing the display language - http://support.apple.com/kb/HT2242 - "Follow the steps below to change the language displayed in iTunes and also the language displayed in the iTunes store."
    Above method did not work but reinstalling iTunes did - https://discussions.apple.com/thread/6798898

  • Display Japanese characters on Applet

    Hi All,
    I am able to display Japanese Characters on my Applet locally(Windows 2000 - US) by overwriting the font.properties content with the one in font.properties.ja found in JRE/LIB directory of my Jdeveloper JDK. When I deploy the applet on 9ias server which is configured for UTF8 charset I get squares wherever I have Japanese characters.
    Appreciate if someone could tell the procedures to make the applet to recognize the Japanese/UTF8 characters and display accordingly.

    I have read some documentation on JDBC thin drivers and they have mentioned that whenever JDBC retreives data from a database it converts it to Unicode 1.2 and I am already retreiving data from a UTF 8 database. The reason I think this is true is because I can display japanese characters locally on my windows machine by overwriting the font.properties in the JDevelopers- JDK- JRE - LIB folder by font.properties.ja
    There must be some way to test why it is showing squares for japanese characters when I deploy it on the server. May be not getting the MS Gothic font used to display Japanese?
    Looks like updating all the code is not feasible at this point as the code currently stores the data in Vectors and we can't perform a vector.getBytes(). Any help will be really appreciated.

  • Problem in displaying Japanese characters on the browser.

    Hi Friends,
    Hope one of you could help me in this!!
    We are using SHIFT_JIS character encoding in our jsps to display Japanese characters.
    <%@ page contentType="text/html; charset=SHIFT_JIS" %>
    Is there any other configuration required on server side to let the Japanese characters being displayed? Because what I am getting on screen is quite annoying. Well something like below.
    ?V?M???????�
    Even though my knowledge in Japs isn't too good :-)) I can understand that these are not Japanese. I believe I am missing something in terms of server side configuration, Can anybody point that out. (Maybe some of the Japanese developers in here).
    This could not be a client side issue, since from the same machine I can access other Japanese sites and they display properly. Let me know if anybody can help.
    I am running these in WAS 5.0
    Thanks,
    King

    Your text in the JSP should be UTF-8 nevertheless - as would be ideal
    for internationalization. Java comes with a command-line conversion tool
    native2ascii which is bidirectional.
    As non-Japanese I am not certain whether "SJIS" might not be better (there
    are some name variations in java).
    The HTML generation will translate these characters to SHIFT_JIS in your case.
    Where the target encoding cannot handle the intended character it receives a
    question mark - hat you saw.
    Furthermore you need a proper font in HTML and under Windows (window title).
    Your webserver should have east-asian support. Though Japanese (and English)
    are standard, I, as non-japanese am not certain about SHIFT_JIS.
    Also there is some freedom in choice for a japanese encoding.

  • PO Document (View Document) does not display Korean Characters

    Hi,
    We have a situation here. In Production, the asian characters are not being displayed in PO Document
    Navigation: Purchase Orders - > Inquire -> View Document
    Surprisingly, a cloned environment of PROD displays the asian characters fine. Has anyone come across a similar issue?
    This uses the XML Publisher template stylesheets. Both PROD and QA have the same style sheets. The template is setup with language as Korean.
    It would be great if anyone can please guide me troubleshoot this issue and identify the cause.

    Thanks for your response.
    I did check the fonts under $OA_JRE_TOP/jre/lib/fonts and $AF_JRE_TOP/jre/lib/fonts folders in both QA and PROD environments.They are identical and albany fonts do not exist under them. But Korean characters are visible in PDFs generated under QA but not in PROD.
    Is there a profile option set to guide XMLP to a folder for fonts? Please let me know.
    Also, the JDK upgrade happened a couple of weeks before and PROD is pointing to JDK 1.5 but QA is still pointing to JDK 1.4 (cloned from a copy week earlier from PROD upgrade).

  • JEditorPane -- displaying chinese characters in browser

    Is it possible to display chinese characters in an applet in a browser, I have read Jaric S.'s article on it.. but it is a little confusing.. however without doing any of that coding I have chinese showing up on one machine in IE, but not on any other machines with IE. Any thoughts anyone?

    Is it possible to display chinese characters in an
    applet in a browser, I have read Jaric S.'s article on
    it.. but it is a little confusing.. however without
    doing any of that coding I have chinese showing up on
    one machine in IE, but not on any other machines with
    IE. Any thoughts anyone?Browser Java is particularly sensitive to the version of Java the browser supports. Some browser companies, notably Microsoft, haven't updated their Java implementation in 4 years. Likewise users who are using old versions of other browsers probably have old versions of Java. This makes it very hard to predict how anything will work when it depends on a browser's VM.
    There are two ways to combat this. First you can use Sun's Java Plugin to replace the VM used by your browser with a modern one that supports your applet. Second, you can use Java WebStart which allows programs to be launched from a browser but run in an independant VM. These two things might help you get consistent results for your applets.
    Hope this helps,
    Brian.

Maybe you are looking for

  • Another error -8, different from others

    I am the Desktop Support person for a faculty member at a large University. She has been using iChat for over a year now to communicate and collaborate with a colleague at another University. About two weeks ago she started getting the error -8 issue

  • Copy on "=" operator

    Hello everyone. I have a class (say Sample) with private member variables, get and set methods, and public member functions. Sample obj1; obj1.setValue(20); Sample obj2 = obj1; obj2.setValue(30); System.out.println(obj1.getValue());This will print 30

  • Error exporting file

    In my Indesign-Extension, there is a button. If you press it, the pages of the current active document will be exported to a predefined folder using doc.exportFile(ExportFormat.PNG_FORMAT, myFile);  This works fine, but only ONCE. If you press the bu

  • Firefox hangs when going on any search engine (Google, Bing &c.)

    Whenever I go on Google, Bing or any other big search engine, Firefox beta 4.11 freezes.

  • -70017 continued

    from http://discussions.apple.com/thread.jspa?messageID=3067284&#3067284 I still have this problem and now I am at 10.5.6, however the nice thing is even thought Apple DVD Player does not work all other apps work like MPlayer and VLC, and the zone re