spen123
spen123

Reputation: 3524

String.replace not Working

I have a string in my maven project and when I run it on my local machine, I have

String name = title.get(i).text().replace("é", "e");

Later I save the variable name to a file

But then when I export to .jar and run the it on my server I see é not e, but when I run on my local machine I see "e" which is what I want.

What is happening?

Upvotes: 6

Views: 675

Answers (1)

Obed Soto Déctor
Obed Soto Déctor

Reputation: 11

If you are trying to change that from a web page you may want to try:

String name = title.get(i).text().replace("%C3%A9", "e");

Upvotes: 1

Related Questions