Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Are you sure setting the "fileEncoding" is what you want, and not "responseEncoding"? Setting the fileEncoding determines how the web server will try to read physical .asmx/.aspx files from disk when it can't determine the encoding automatically. So, settings this to "utf-8" means you must save all your .asmx/.aspx files in utf-8. I don't think is relevant though.</p> <p>The mangling you're seeing is when text encoded as utf-8 is parsed using an 8-bit encoding (i.e. an utf-8 bytestream is decoded using an 8-bit decoder, such as, in your case, iso-8859-1/Windows-1252). So it's possible that the HtmlEncode() you're doing before throw()ing the Exception is wrong about the intended output encoding. So what happens if you don't HtmlEncode() the error message?</p> <p>(Technically, "ASCII # 252" isn't quite right; ASCII has 128 characters; the apostrophe you use is coming from an 8-bit encoding such as, in your case, iso-8859-1/Windows-1252.)</p> <p>Are you sure you've disabled that HTTP Module correctly? This line looks like it could be causing the problem:</p> <pre><code>HttpContext.Current.Response.ContentEncoding = l_Enc;</code></pre> <p>...since it's most likely setting the output encoding to an 8-bit encoding (the ANSI code page equivalent).</p> <p><strong>To support as many cultures as possible, you should set the response encoding to utf-8.</strong> This is the most supported Unicode format in browsers (I daresay all modern browsers support it), and Unicode is the only alternative to local encodings. That said, I don't fully understand what HTTP Module you are using and why you need it, so the situation may be more complex than I think.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload