I am trying to query odata service in SDL Web 8.1. While querying I am getting special characters as result in the browser. Please let me know if anything going incorrect in the configuration.
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It only takes a minute to sign up.Sign up to join this community
To enable encoding to use the jvm.xml in your Content Delivery services config folder something like:
<!-- This file can be used to send application specific JVM arguments. --> <VirtualMachine> <Options> <!-- Add the Option tag to define specific JVM options. The Option tag can define the MaximumHeapSizeInMB (-Xmx), the InitialHeapSizeInMB (-Xms) and other JVM properties(-D). --> <!-- <Option Name="-Xmx" Value="400m"/> <Option Name="-Xms" Value="50m"/> --> <Option Name="-Dfile.encoding" Value="UTF-8"/> </Options> </VirtualMachine>
As I was not able to find any direct fix for OData.svc itself, I tried the suggested solution provided in the SDL Web 8 documentation SDL Web 8. I created a reverse proxy url rewrite module which directed all requests coming to Odata.svc to Content.svc microservice. This seems to solve the problem.