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. Advertising

  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. 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. omegaman
    Replies:
    1
    Views:
    562
    omegaman
    Sep 21, 2004
  2. Crouchinho
    Replies:
    2
    Views:
    423
    Crouchinho
    Sep 27, 2006
  3. Replies:
    3
    Views:
    1,750
    Timothy Bendfelt
    Jan 19, 2007
  4. Replies:
    9
    Views:
    970
    Juha Nieminen
    Aug 22, 2007
  5. Jeff.M
    Replies:
    6
    Views:
    172
    Lasse Reichstein Nielsen
    May 4, 2009
Loading...

Share This Page