473,785 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Accented Characters

58 New Member
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
Sep 11 '07 #1
4 2896
Nepomuk
3,112 Recognized Expert Specialist
Isn't this the same issue as this thread of yours?

Please don't double post.

Greetings,
Nepomuk
Sep 11 '07 #2
gsuns82
58 New Member
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
Sep 12 '07 #3
Nepomuk
3,112 Recognized Expert Specialist
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
Sep 12 '07 #4
gsuns82
58 New Member
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
Sep 13 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2453
by: Fuzzyman | last post by:
I've written an anagram finder that produces anagrams from a dictionary of words. The user can load their own dictionary. ( http://www.voidspace.org.uk/atlantibots/nanagram.html ) In order to ensure it is able to find anagrams properly I wanted to strip characters like punctuation etc from words in the dictionary and words the user entered. I test(ed) against the 26 English letters ( string.ascii_lowercase ).
0
2202
by: Jeff Levinson [mcsd] | last post by:
I don't know of a component like that, but it is really easy to do yourself. First, the String.Replace function is unicode based so it's quite easy to use extended and standard characters interchangeably. What I would recommend is to create an object that holds the basic character and extended character in unicode (use this as a map for conversion) and then create a shared method on the object that ran the replace command and ...
2
2661
by: Remco van den Berg | last post by:
I'm running a MySQL database with one of tables holding the members of a volleybal club in the Netherlands. One the the fields in that table is holding the name of the players. How do I search for all people with the name "Andre", with the important remark, that it should also match "André"!! So with the letter "e" with an accent "'" on it. In the Netherlands those names can be spelled with and without the accent and I do not always...
23
3953
by: Brian | last post by:
Despite charset being discussed to death, and despite having followed all of those threads, I still have problems. http://www.tsmchughs.com/recipes/soda-bread This page uses iso-8859-1 charset. From the headers: Content-Type: text/html; charset=iso-8859-1 Under ingredients are characters for fractions (188, 189, and 190) and the degree character (176), characters which Lynx can display on
4
2031
by: Satish | last post by:
Hi Gurus, Please help me in this, I have tried all options available to me. (Option 1) I am making a simple request from VB.NET client to WBI generated WSDL and passing request parameters. The response I am expecting should have some accented characters (Customer Name: Lokalcenter Åbygård), but this gets truncated and response is as follows (Customer Name: Lokalcenter bygrd). The WSDL has utf-8 character set defined.
9
7839
by: JezB | last post by:
Is there anything in the framework which will help translate accented characters in strings to their standard counterparts? eg. "Gráda" to "Grada"
0
1147
by: Patrick Cailly : METRONOME & BASIC | last post by:
for test purpose I transfered a database 7.1.2 SQL_ASCII that contained ( pg_dump ) accented french characters to a 7.3.2 SQL_ASCII and the problem is that the accented characters are wrong. ( from pgaccess LINUX and WINDOWS) what was "a with a grave accent" is now "A (MAJ) with a tilde"
2
6432
by: gsuns82 | last post by:
Hi all, I have to replace accented characters from a input string with normal plain text.I have coded as follows. String input = "ÄÀÁÂÃ"; input= input.replaceAll("", "A"); like wise v can do for all. output was: ************ AAAAA
1
1988
by: gsauns | last post by:
I have an ASP.NET app in which I import from a comma-delimited text file, put all that data in a GridView, and then insert the records into multiple related tables in my SQL Server database. I got one text file which contains accented characters. When I bring them into the GridView, the accented characters show up as boxes, the universal unrecognized character. And since I am inserting into the DB by iterating thru the rows of the...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8978
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3655
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.