Webapp does not support foreign characters

Discussion in 'Java' started by zakasbanda, Mar 26, 2008.

  1. zakasbanda

    zakasbanda Guest

    Hi All

    I need your help.

    My web application does not support foreign language characters right
    now. If I type in some chinease charanters in TITLE and save, it comes
    back with garbage. While my database is UTF-8, the rest of the
    application is not. Its a typical "JST, Servlet, JSTL, Java" app.
    Could you guys please can help me what all things I will need to
    change in order to accomplish this? The application just needs to
    accept foreign characters and display them back correct.

    Will appreciate your help.
    zakasbanda, Mar 26, 2008
    1. Advertisements

  2. zakasbanda

    Roedy Green Guest

    Do a view source.

    you should see

    <meta http-equiv="Content-Type" content="text/html;

    make sure the charset is one that will support the chars you need, and
    that they are correctly encoded. You can use my applet called the
    encoding recogniser to check.

    See http://mindprod.com/jgloss/encoding.html
    Roedy Green, Mar 26, 2008
    1. Advertisements

  3. zakasbanda

    Hugo Guest

    Are you using any frameworks like Struts? The charset is also defined
    in the struts JAR.
    Hugo, Mar 27, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.