First time I've ever encountered this strange situation. I've already worked with Ajax and parameters of different types. I tried it to solve with contentType
, but it didn't seem to work.
I tried to play with formats like UTF-8 of the document, and contentType
as mentioned above.
$.ajax({
url: "/Test",
type: "POST",
data:
{
'ID':$(this).attr("ID"),
'Date':$(this).attr("Date")
},
dataType: "json",
cache: false
})
ID=12345&Date=01.01.2018+00%3A00%3A00 // Is
ID=12345&Date=01.01.2018 00:00:00 // Should be
Because of this I cannot convert it to a double
type in Delphi (Rad Studio):
Variant of Type (UnicodeString) could not be converted into Double