Non-breaking space ("& # xA0;") does not translate correctly in IE9 and IE11 when performing XSLT conversion

We do on the client side XSL transformationover documents with encoding ISO-8859-1. Works great in IE7and IE8. However, when we run into IE9, IE11the actual conversion works fine, but non-breaking spaces ( "  ") are no longer supported in the conversion.

Instead of inextricable space, it places in " replacement character" (displayed as question mark inside a dark diamond).

If we go to Compatibility Mode, the inextricable space is correctly displayed as part of the transformation. This seems to be a bug in the XSL processor, which is in IE9 - non-breaking spaces must be correctly transformed.

If there is any problem around?

the image shown below is an image of the substitution symbol on IE9and IE11.

image is displayed instead of space

Warnings / Error Messages from the IE11 Console -

    HTML1300: Navigation occurred.
    File: Test
    XML5001: Applying Integrated XSLT Handling.
    HTML1524: Invalid HTML5 DOCTYPE. Consider using the interoperable form "<!DOCTYPE html>".
    File: Test, Line: 3, Column: 1
    HTML1114: Codepage utf-8 from (10) overrides conflicting codepage iso-8859-1 from (META tag)
    File: Test
    HTML1504: Unexpected end tag.
    File: Test, Line: 380, Column: 1
    HTML1504: Unexpected end tag.
    File: Test, Line: 381, Column: 1
    HTML1504: Unexpected end tag.
    File: Test, Line: 476, Column: 1
    SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited.
    File: Test

HTML1114: Codepage utf-8 of (10) overrides the conflicting code page iso-8859-1 of (META label)

Not sure why IE11 overrides the encoding set by the server.

+4
source share
1 answer

. , , IE10/11 rencode UTF16 , ISO-8859-1.

, <meta charset="ISO-8859-1"> <head> HTML. , MSIE (, , , ). , , .

+2

Source: https://habr.com/ru/post/1616714/


All Articles