special character “” is not work in Linux, converted into “?”

I consuming an api which is returning String with special characters, so I replace them with blank or some other user readable char. My code: String text = response; if (text != null) { …