Remove thousand separator from string

valik :

Ive been trying to remove a thousands separator from this string but with no luck.

I have tried a trim(), replace("\\s") and unicode values like '\u00A0', '\u2007', '\u202F' but with no luck. Picture below shows the string

Joni :

The character you see is a non-breaking space: \u00a0. You can get rid of it using String.replace, for example.

value = value.replace("\u00a0", "");

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=400522&siteId=1