Results 1 to 2 of 2
  1. #1
    Malathi is offline Member
    Join Date
    Mar 2009
    Rep Power

    Default How can i retain special characters in server side (java) after passing from client


    while passing a string containing special characters from client side to server side, special characters are converted to some junk characters when we are getting to java file.

    i have stored the string in a bean property, and i am getting the same property from bean in java. But it is coming with some junk where special characters are in place

    please suggest

  2. #2
    Join Date
    Mar 2009
    Rep Power


    Try to use the following on serverside
    URLDecoder decoder = new URLDecoder();
    guiFileName = decoder.decode(request.getParameter("guiFileName") ,"UTF-8");

Similar Threads

  1. How to open a file located in server from client side
    By Malathi in forum Web Frameworks
    Replies: 4
    Last Post: 04-20-2009, 09:10 PM
  2. Replies: 2
    Last Post: 10-05-2008, 06:13 PM
  3. passing info between server/client problem
    By DarkBlaze in forum New To Java
    Replies: 13
    Last Post: 07-24-2008, 03:14 AM
  4. special characters
    By ravian in forum New To Java
    Replies: 2
    Last Post: 11-16-2007, 01:28 PM
  5. Special characters in text fields
    By Felissa in forum Web Frameworks
    Replies: 0
    Last Post: 06-27-2007, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts