Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1039

Intellij converts special characters to different characters

$
0
0

I am trying to call a service in an application and filter the response i get from the service call.

response = serviceCaller.callMyService(request, endpoint);    if(isTrue){        response.getSomeList().removeIf(obj -> !obj.getType().equals('Ö'));    }`

There are objects in the list with type as Ö. So what i expect is that objects in the list with a type that is not Ö should be removed from the list. But in the response special characters like Ö is converted to 'Ö' . Because of this the list is null but i expect to see objects with type Ö.

When i call the same service with postman the result is not converted and i can see the type Ö but if its called from the application as i'm trying to do it is converted to 'Ö'. How can i fix this can anyone help?


Viewing all articles
Browse latest Browse all 1039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>