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?