If it is simple as replacing each '?' with an empty string then there is no need for replaceAll(), just use

Edit : Thinking about this, it looks to me like the OP has parsed an XML file using the wrong character encoding and now need to get rid of the resulting '?' that are created when the encoder does not recognise some bytes as characters.

Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.

Ragupathirajan Venkatesan

Ranch Hand

Posts: 62

posted 6 years ago

Dear All,
Thanks a lot. It works for me.

The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart: