Ok Here's how I went about doing this..
I am keeping my source file in ASCII.
Using a windows 2000 box I open up the character map application.
I change the font to Arial Unicode MS.
I look for the character �, click on it to find the
unicode code point on the status bar of the window.
It tells me that it is U+00C9.
Then open up notepad,
change the font to Arial Unicode MS (at least from windows 2000 onwards Notepad supports Unicode)
I use a key value pair and put the value as JOS� LEAL.
I use the java.util.Properties class to read it in to
a String variable called strToReplace in my java program.
(I am doing this because my source is in ASCII)
Then I do..
finaler = strToReplace.replaceAll("\u00C9","X");
System.out.println(finaler);
Output:
JOSX LEAL
However there may be some gotcha's
here which I haven't understood yet.
[ September 11, 2008: Message edited by: Gamini Sirisena ]
[ September 11, 2008: Message edited by: Gamini Sirisena ]