Applet wont display Chinese when in a browser, but will in Appletviewer

I am trying to display an applet in a browser, however the chinese characters in the applet come up as ???. The chinese characters display correctly in appletviewer. Can anyone help me? Thanks.

I would have said it was the database straight out, but the fact that you're actually having the question marks display makes me think that it's the font you're using. AFAIK, the standard Java fonts are incapable of displaying CJK characters in a browser (I've tried before with the florin character, a cursive "f" that represents the Dutch monetary symbol, and had similar problems). You might have to try carrying a font with you and calling it by name or something.
If you're dead sure it's not the font, then it has to be the encoding screwing up on the way over from the database, but I'm not terribly up to scratch on that type of thing. ;)
Brian, was that bug where calling createFont() on a TrueType font leaving a copy of the font in your temp directory fixed in 1.4? Maybe it would be possible to carry a CJK-capable TrueType font around, call it by URL, and force users to have the Java1.4 Plugin?
Hope that helps!
Martin Hughes

Similar Messages

  • Zen vision :M wont display anything when on & computer cannot recogn

    my?zen vision :M wont display anything when?i turn it on & my computer cannot recognise it... no my lcd isnt imploded or damaged...
    p.s. the buttons wont even glow when on plz help

    Are you sure it's turning on? If the display isn't turning on and the buttons don't light up, it sounds like the player isn't powering on at all. Do you hear it playing music?
    Have you tried leaving the player charging for a few hours, and then checking if it starts up on the PC? When it's turned on, does the system recognise it at all, does it see an unknown device for instance?
    Cat

  • Firefox will not open in browser but will on iPad

    I have a good signal to the router and iPad works well. The PC will not open any browser (Firefox, explorer internet), and Thunderbird opens but will not connect and times out.
    So I cannot reinstall Firefox or Thunderbird. I can get messages on my iPad but not the PC.
    I have scanned the PC and have no virus or malware.
    Any ideas of what to do next please?

    You weren't very clear about what you are trying to do, but there is no Firefox for iOS devices - iPad and the iPhone.
    You can download Firefox for PC's and MacOSX computers / laptops here:
    http://www.mozilla.com/en-US/firefox/all.html

  • My microphone won't work when in Speaker mode, but will when in regular mode. What is up with that?

    My iPhone's microphone will not work in the Speaker mode, but will when in Regular mode. The microphone works even when in bluetooth mode. This was sudden and no updates have been made recently, but it is up to date with the software.

    I took it to the apple store and it was determined to be a mechanical problem. Since I had apple care, they replaced the phone.

  • Call a JSP from applet and display the results in the browser

    Hello All,
    I have written an applet which performs some functionality at the clinets browser. When the applets method finishes exectution, I would like to call
    a jsp. The results of the JSP should be displayed like a normal page in the browser.
    I tried creating a HttpURLConnection and calling the jsp but two things happened
    1. The jsp call failed because the applet doesn't have a valid session id.
    2. even if I disable the valid user check at the jsp, the results of the jsp are returned as a set of bytes to the applet. They are not displayed in the browser window.
    Then I tried applet.getAppletContext().showDocument()... However with this api I cannot do a POST operation on the JSP with some input data because this takes only a URL as an input parameter.
    Please help me in this problem and I will be very gratefull to you.
    1. applet uses the same session id as the browser so that when applet makes a request to the jsp it does not get user invalid exception.
    2. the results of the jsp are displayed on the browser and not given to the applet.
    Thank you so much for your help.
    regards,
    Abhishek.

    I hope this can help you
    I made a package calls fun
    and a clsss calls JspTestingFun
    package fun;
    public class JspTestingFun{
      private String sample = "welcome to jsp";
      //Access sample property
      public String getSample() {
        return sample;
      //Access sample property
      public void setSample(String newValue) {
        if (newValue!=null) {
          sample = newValue;
    }then I make a jsp file
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ page import =  "fun.JspTestingFun"%>
    <html>
    <head>
    <title>
    jspTest
    </title>
    </head>
    <jsp:useBean id="mytest" scope="session" class="fun.JspTestingFun" />
    <jsp:setProperty name="mytest" property="*" />
    <body bgcolor="#ffffff">
    <%
    mytest.getSample();
    %>
    <h1>
    Just for testing
    </h1>
    <form method="post">
    <br>Enter anything   :  <input name="sample"><br>
    <br><br>
    <input type="submit" name="Submit" value="Submit">
    <input type="reset" value="Reset">
    <br>
    this what we get<jsp:getProperty name="mytest" property="sample" />
    </form>
    </body>
    </html> 

  • Dreamweaver CC Child Page not displaying CSS when previewed in browser

    Forgive me as I'm completely new to Dreamweaver. I'm working through Dreamweaver CC Classroom in a book at the moment and I'm having issues with the browser preview of my child page. In dreamweaver everything appears as it should, (as far as I know), with my CSS stylesheet in the sources panel. It's connected to all my media types and displaying appropriately in my "live" view. But, when I go to "Preview in Web Browser", it's as if no stylesheet is attached. Can someone help? I have restarted Dreamweaver just incase it was a program issue, but the problem persisted.

    It's linked to my site. See the underlined portion.
    Code goes as follows:
    <!doctype html>
    <html><!-- InstanceBegin template="/Templates/mygreen_temp.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="/js/menu.js"></script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Meridien GreenStart Association – Green News</title>
    <!-- InstanceEndEditable -->
    <link href="/mygreen_styles.css" rel="stylesheet" type="text/css">
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- InstanceBeginEditable name="head" -->
    <meta name="description" content="Meridien GreenStart Association – add description here.">
    <!-- InstanceEndEditable -->
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2,n4:default;paytone-one:n4:default;kreon:n4,n7: default;patua-one:n4:default;cousine:n4:default.js" type="text/javascript"></script>
    </head>

  • Numerous websites linked to desktop icons won't open with Firefox as my default browser, but will when I subsequently designate Internet Explorer as the default browser. However, when I select IE, I cannot open Firefox. How do I fix this? CharlieA

    When I designate Firefox as my default browser, I cannot open any destop link to any website, except Mozilla. When I change that designation to Internet Explorer, I can open all destop linked websites, except for Firefox. What do I do?

    Sometimes Windows gives you weird error messages when you click a link in another program or double-click a desktop shortcut. These messages usually occur only when Firefox was closed and has to be launched before the link can be loaded. Is that what you're getting? This occurs when Firefox's registry settings get crossed up, as described in this article: [http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox Windows error opening Internet shortcut or local HTML file - Firefox - MozillaZine Knowledge Base].
    If that isn't it, what happens exactly?

  • Why cant I open any messages or emails from my Hotmail account when using Firefox browser but works fine using IE browser

    When I open my Hotmail account while using Firefox as my browser I am unable to open any email in both Inbox and Junk. I can reload either one and it will sometimes work for a short time. However if I switch to Internet Explorer browser it all works great.

    Had this problem for quite a while but found a work-a-round. I click anywhere in the text I want to delete and insert any character. I am then able to block and delete any text I want to. It's been working great.

  • Why does Jaws works with the project when previewed in browser but does not when it is published?

    I am using Jaws 15.0.110024 and Captivate 8 in windows.

    Perhaps you need to add the published location to the list of trusted locations for the Flash Player?
    Click here for info on how to do that
    Cheers... Rick

  • I have tried to set my gmail to open when starting my browser, but a search ;program keeps coming up and I cannot get rid of ti.

    http://www-search.net/search/search.html?pid=s&s=EA8ztrpds03TRS%2c105bc2bb-15a8-4f14-be47-992e76665fb4%2c&pi=2
    This is what keeps coming up How do I prevent this. It is not on my uninstall list.

    Hello,
    Please see:
    * http://malwaretips.com/blogs/www-search-net-removal/

  • My ipod touch wont connect to my computer via usb but will connect to a different computer and i can connect my ipod nano anyone know how to connect my ipod touch?

    so the ipod connects to my brothers computer fine but it wont connect to myn... it doesnt show in my computer but when i plug it in and out it makes the little connect sound and it doesnt charge on my computer either,,, my ipod nano however connects fine to my computer fine.. any solutions?? please help

    Try here. Look especially at the driver and service topics. The iPod touch uses different drivers thant the Nano
    iOS: Device not recognized in iTunes for Windows

  • Firefox is set as my default browser but will not open. I can access other browsers

    Firefox crashed while I was browsing. I re-started the LT and now Firefox will not start. I have tried re-starting from the desktop, the tool bar and the start menu.I can use other browsers which are not my default browser eg Googlechrome. This is not the first time Firefox has crashed but is the first time it would not re-start. I have looked through the Firefox support page but potential solutions require Firefox to be open to access the Firefox toolbar.
    NB. I am an IT dummy (seriously) ie I have no idea what a plug-in is so the simpler the better when explaining what I am doing wrong. Thanks

    Hopefully this support article is what you need:
    http://support.mozilla.com/en-US/kb/How+to+set+the+home+page

  • Why do email hyperlinks open a new ff browser, but will not open the link?

    '''''''''XPSP3 & FF3.6 & Outlook2003''''''''' : When I click on a hyperlink in outlook, a fresh occurence of ff opens (even though ff is already open) but the link will not open. This used to work before I upgraded to ff4.0, so I rolled back to 3.6 and still have the same problem. All the file type suggestions have been executed, but still no success. Can anyone offer any help?

    The '''SearchToolbar/1.2''' that messed with your UserAgent might be the cause of that problem. Try some troubleshooting.
    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • HT201263 I have restored my iPad (first generation without retina display) and it finishes restoring software but will not stay on for me to restore the data and then shuts off whenever I try to turn it on. I don't believe that it is charging! HELP!

    Long story about what happened but basically I was using the iPad (first generation without retina display) to watch TV at one point it had 20% battery so I plugged it in then it wasn't charging and I didn't realize so it got to 5% and shut off. I plugged it in to charge it but it just kept shutting down and showing the apple logo, then briefly showing me my home screen before shutting off again. I waited a while to see if it would charge, while it continued to turn off and on by itself. Finally, I unplugged it to see if it had gotten any charge but it just told me to plug it in again. I plugged it into a different charger, same thing. I decided to try connecting it to a computer and it stopped turning on but it did not seem to charge. I tried restoring it as it said in the article. It worked until it got to restoring the iPad from the backup that I had because it immediately shutdown before I could continue. I tried to restore it a second time but still it shut down! I'm so frusturated and I cannot afford to get a new iPad, I need it for school and there is no Apple store for 80 miles nor do I have any insurance or warranty on it! (Obviously considering it's the first iPad to ever come out.) I really don't know what to do! HELP

    Try this Support Article  >  http://support.apple.com/kb/HT1808

  • Some emails blank when opened in yahoo but will open from trash

    Most emails open but maybe once or twice a day when I open an email it is blank. These are just emails from friends that have messages that have been typed and sent. I can delete the email and then go to trash and they will open.

    Hi,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for

  • Delete from iTunes but not on iPhone

    It is my understanding that if you delete a voice memo from iTunes, it is also deleted from the iPhone. Can you avoid this? I would like some things only on my iPhone. Thanks!

  • Cannot install Adobe Acrobat X Pro on Windows Vista ultimate

    Here are additional Details: Intel(R) Core(TM)2 Duo CPU T5450 @1,66GHz 1,67 GHz Memory(RAM): 2046 MB System type: 32-bit Operating System Is anything possible? Which version of Adobe Acrobat would you recommend?

  • Need information on "Flash local storage" please

    Does anyone know about "Flash local storage"? Where is it? what sort of data can be stored there? how you see it and delete it? Friend wanted me to check out Pandora and reading through their FAQs I found this interesting tidbit. Note that Flash Loca

  • CS5 - Clone and Healing stop working

    Hi, I'm using PS CS5, Windows XP Home, fast CPU, 4GB RAM. I was working on a file today -- D3 NEF opened from LR3 into CS5 -- and created about a dozen layers, some adjustment layers and other empty layers for healing and cloning (using Sample All La

  • Rman Linux Error: 22: Invalid argument

    Hi, I have Oracle 8.1.7.0.1 running on Redhat 7.2 When I try to backup database using RMAN I get following error: RMAN-03026: error recovery releasing channel resources RMAN-08031: released channel: disk1 RMAN-00571: =================================