Problems with Tomcat 4 when posting 16-bit characters (e.g. Chinese)

Discussion in 'Java' started by Liviu Tudor, Sep 29, 2003.

  1. Liviu Tudor

    Liviu Tudor Guest

    Hi there!
    Has anyone experienced this with Apache Tomcat 4.0?
    I've got a form that provides translation (using other translation
    engines) to and from chinese. It all works well when I'm translating
    stuff from English to Chinese, and the characters are printed
    correctly in the browser; however if I copy and paste these characters
    in the "source" text box and try to translate them from chinese back
    to English, it looks like -- even though the browser sends the
    characters properly encoded on 2 bytes (e.g. %413 or so) -- they
    arrive in my String as a 2 different characters (as if it was %04%13)
    which of course scrambles it all. Does anyone know how to overcome
    this????
    Thanks!
     
    Liviu Tudor, Sep 29, 2003
    #1
    1. Advertisements

  2. Liviu Tudor

    nielinjie Guest

    write a filter to encode contents in posted form.


    "Liviu Tudor" <>
    ??????:...
    > Hi there!
    > Has anyone experienced this with Apache Tomcat 4.0?
    > I've got a form that provides translation (using other translation
    > engines) to and from chinese. It all works well when I'm translating
    > stuff from English to Chinese, and the characters are printed
    > correctly in the browser; however if I copy and paste these characters
    > in the "source" text box and try to translate them from chinese back
    > to English, it looks like -- even though the browser sends the
    > characters properly encoded on 2 bytes (e.g. %413 or so) -- they
    > arrive in my String as a 2 different characters (as if it was %04%13)
    > which of course scrambles it all. Does anyone know how to overcome
    > this????
    > Thanks!
     
    nielinjie, Sep 29, 2003
    #2
    1. Advertisements

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. Simon Chung-Jen Chuang

    WebForm contain Chinese characters...

    Simon Chung-Jen Chuang, Jul 4, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    519
    dave wanta
    Jul 4, 2003
  2. Calvin Lai

    Chinese characters in ASP:DropDownList

    Calvin Lai, Dec 21, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    603
    Calvin Lai
    Dec 21, 2003
  3. Rakesh Pandit
    Replies:
    0
    Views:
    665
    Rakesh Pandit
    Jul 12, 2005
  4. omegaman
    Replies:
    1
    Views:
    725
    omegaman
    Sep 21, 2004
  5. Crouchinho
    Replies:
    2
    Views:
    545
    Crouchinho
    Sep 27, 2006
  6. Replies:
    3
    Views:
    2,262
    Timothy Bendfelt
    Jan 19, 2007
  7. Replies:
    9
    Views:
    1,381
    Juha Nieminen
    Aug 22, 2007
  8. Jeff.M
    Replies:
    6
    Views:
    400
    Lasse Reichstein Nielsen
    May 4, 2009
Loading...