473,419 Members | 1,662 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Replacing Accented characters from a String

58
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
now i want u people to suggest me on the above code n let me know ,s thr any other effective code to replacing accented characters from input string with normal text.???

Along with this i would like to know the list of accented characters used in french language,so that i can use those while replacing.

Thanks in Advance,
sundar.
Sep 11 '07 #1
2 6391
dmjpro
2,476 2GB
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
now i want u people to suggest me on the above code n let me know ,s thr any other effective code to replacing accented characters from input string with normal text.???

Along with this i would like to know the list of accented characters used in french language,so that i can use those while replacing.

Thanks in Advance,
sundar.
What's the problem with it?

Kind regards,
Dmjpro.
Sep 11 '07 #2
kreagan
153 100+
s thr any other effective code to replacing accented characters from input string with normal text.???
It seems like you need to read about Character class and Unicode.

Character Class
Unicode

If I was writing this character replacement, I would parse the string (character by character) and change accordingly.
Sep 11 '07 #3

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

Similar topics

1
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...
4
by: Davide Benini | last post by:
I cannot get accented charecters in my HTML output... I have tried to leave the accented characters in and to use iso-8859-1, but there it doesn't work either. I have tried to use à entity,...
10
by: John Byrne | last post by:
I have encountered a problem when certain European characters are included in the Querystring of an URL. If I have a URL like: ?param=AAà On the receiving page a simple Request() call returns...
2
by: nicolas_riesch | last post by:
I try to use python as the language in an asp page with Microsoft IIS 5.0. I have these two files, req_bad.asp and req_ok.asp ---------- req_bad.asp --------- <%@LANGUAGE=Python%> <%
4
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...
4
by: E Thoemmes | last post by:
Hi I am designing an application to be used by a book dealer and they have asked if I could develop a function on the form where they could use accented characters and other european characters....
0
by: mkouts | last post by:
Hi, I encountered some unexpected behavior in ASP.NET application running on framework v1.1 and I’m trying to understand if it’s some sort of a configuration issue or a known ASP.NET...
0
by: shintu | last post by:
Hallo, I am trying to write french accented characters é è ê in Excel worksheet using my perl script , But I am stuck here as I couldnt find a way of writing it !: My code: use strict;...
4
by: gsuns82 | last post by:
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.After that i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...
0
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...

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.