Problem with Accented Characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gsuns82
    New Member
    • Mar 2007
    • 58

    #1

    Problem with Accented Characters

    Hi all,
    I am facing a strange issue.
    i.e: I have a jsp page with an input text field where the user can enter searching value even along with Accented Characters.Afte r that i am getting the input value at the controller inorder to compose a query,before that i am replacing Accented Characters with plain text values so that i can append the proper input value in the DBquery.

    I tried to replace the input string for Accented Characters in a seperate java program,it worked well,but wen i try the same inside my controller,i am getting a additional ? symbol along with the input string for each Accented Characters that i entered in the jsp input text field,at the same time the Accented Characters entered in the input text field get changed as follows

    Ä gets changed as Ä after hitting the search button in the jsp page.

    can any one help me regarding this???

    Thanks in advance,
    sundar
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Isn't this the same issue as this thread of yours?

    Please don't double post.

    Greetings,
    Nepomuk

    Comment

    • gsuns82
      New Member
      • Mar 2007
      • 58

      #3
      Originally posted by nepomuk
      Isn't this the same issue as this thread of yours?

      Please don't double post.

      Greetings,
      Nepomuk
      There is a vast difference between my two posts,pls read it carefully before making any comments...

      regards,
      sundar

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        Originally posted by gsuns82
        There is a vast difference between my two posts,pls read it carefully before making any comments...

        regards,
        sundar
        OK, sorry, my mistake.

        So, about the issue: How do you call the program, which replaces the letters? And are you absolutely sure, that the program doesn't add a unprintable character, which is displayed differently in those two uses? (In the program itself it just doesn't print and with your new program using it, it prints it as a questionmark.)

        Please post some relevant code, otherwise we won't be able to find the error.

        Greetings and Apologies,
        Nepomuk

        Comment

        • gsuns82
          New Member
          • Mar 2007
          • 58

          #5
          Originally posted by nepomuk
          OK, sorry, my mistake.

          So, about the issue: How do you call the program, which replaces the letters? And are you absolutely sure, that the program doesn't add a unprintable character, which is displayed differently in those two uses? (In the program itself it just doesn't print and with your new program using it, it prints it as a questionmark.)

          Please post some relevant code, otherwise we won't be able to find the error.

          Greetings and Apologies,
          Nepomuk
          its ok,i found the solution by adding following code to my jsp
          <%@page language="java" contentType="te xt/html; charset=ISO-8859-1" %>.
          The prblm i had was accented characters were not regonized while processing the http request as we need to set proper charset value in our jsp page.

          Thanks&Regards,
          sundar

          Comment

          Working...