JSP Character Sets

Discussion in 'Java' started by sonofseymour@aol.com, Jul 6, 2005.

  1. Guest

    I'm having some difficulties displaying Chinese characters (utf-8)
    within a JSP. I've tried all of the obvious things: contenttype and
    charset within a page directive; an html meta tag with equivalent
    options; and an invokation of response.setContentType. But no luck.
    What is particularly puzzling is that I have a servlet embedded within
    the page, and the servlet is able to write the characters that I want.
    Is there anything else I should be trying?

    Thanks in advance.
    , Jul 6, 2005
    #1
    1. Advertising

  2. Ray in HK Guest

    I guess you are using tomcat and I've met the same problem. The answer
    could easily be found in google in minutes. You may try it out.

    <> ¦b¶l¥ó
    news: ¤¤¼¶¼g...
    > I'm having some difficulties displaying Chinese characters (utf-8)
    > within a JSP. I've tried all of the obvious things: contenttype and
    > charset within a page directive; an html meta tag with equivalent
    > options; and an invokation of response.setContentType. But no luck.
    > What is particularly puzzling is that I have a servlet embedded within
    > the page, and the servlet is able to write the characters that I want.
    > Is there anything else I should be trying?
    >
    > Thanks in advance.
    >
    Ray in HK, Jul 7, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MattB
    Replies:
    0
    Views:
    326
    MattB
    Jun 14, 2005
  2. BLG
    Replies:
    13
    Views:
    1,001
    John C. Bollinger
    Oct 21, 2003
  3. Robert M. Gary

    character sets

    Robert M. Gary, Mar 15, 2005, in forum: Java
    Replies:
    4
    Views:
    400
    Mark Thornton
    Mar 15, 2005
  4. Replies:
    0
    Views:
    4,325
  5. ed
    Replies:
    2
    Views:
    439
    Chris Uppal
    Dec 8, 2006
Loading...

Share This Page