Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It can be really tricky to find the reason for this be behavior. But let me point out some facts about classic ASP that might help you...</p> <h1>Session encoding</h1> <p>Session.Codepage affects the whole duration the session, meaning all subsequent requests will use the specified codepage. That doesnt stop indivial asp-files to use another encoding though by again specifying another codepage. So look through your application for pages that specifies encodings either by <strong>Session.Codepage</strong> or <strong>Response.Codepage</strong>.</p> <h1>Browser encoding:</h1> <p>Things get really messy here. When form data is posted to the server there is no provision in the form url encoding standard to declare the code page used. Browser can be told what encoding to use and they will default to the charset of the html page contain the form, but there is no mechanism to communicate that choice to the server.</p> <p>ASP takes the view that the codepage of posted form fields would be the same as the codepage of the response its about to send. Take a moment to absorb that.... This means that quite counter intuatively the Response.CodePage value has an impact on the strings returned by Request.Form. For this reason its important to get the correct codepage set early, doing some form processing and then setting the codepage later just before sending a response can lead to unexpected results.</p> <h2>String literals in asp-files</h2> <p>When the script engine parses the file that chunks of content in the file (the stuff outside of script code blocks) are turned into a special form of Response.Write (including string literals). Its special in that at the point script execution would reach these special writes the processor simply copies verbatim the bytes as found in the file directly to the output stream, again no attempt is made to convert any encodings.</p> <p>Read the answer to this question for more information. <a href="https://stackoverflow.com/questions/6937509/internal-string-encoding">Internal string encoding, Classic ASP</a></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. This table or related slice is empty.
    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