I have OData model
for class X:
<EntityType Name="X" OpenType="true">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="name" Type="Edm.String" />
<Property Name="logo" Type="Edm.String" />
</EntityType>
When I post new entity for this class, if the field is open type and is Utf8 the property field (Open type IDictionary<string, object>
) populate with those UTF characters. If I do the same with field that is not open type (name for example) the data is ok.
For example: If I send request to create new entity X
with (This is the json I send within the POST request)
{"name":"ä,ö,ü", "nameOpenType":"ä,ö,ü"}
it will be serialized into (This is the entity that I got in the OData controller)
{"name":"ä,ö,ü", "nameOpenType":"\u00e4,\u00f6,\u00fc"}
The problem is that "nameOpenType" become unreadable string instead of being the same as "name".
The serialization is done by OData default when I send POST request to the OData controller.
How can I fix this?