Why are the special characters not displayed correctly in the HTML pages of the S7-1500 CPU when the file is opened via AJAX?
The web server of the CPU delivers the HTML pages in which for security reasons all the dynamic content (DTL values, for example) is encoded in HTML. The content is decoded automatically by the HTML client (browser) and therefore displayed correctly.
There is no automatic decoding in the AJAX request. You have decode the data yourself in this case if you need it. Fig. 1 shows an example for the time format "DTL#2018-04-23-06:25:01.778732551" when you open the file via AJAX.
The following Java script code shows you how you can decode the data using the function "htmlDecode()":
|var doc = new DOMParser().parseFromString(input, "text/html");|