asp-classicincludehtml.encode

ASP vs Inc behavior difference with html.encode


For my current project i work with include files (.inc) inside visual studio.

What i did is changed some inc files to asp.

But when i consult my page i have a strange behavior with special characters.

Examples André for André

Priv� for privé

When i use html.encode i do not get any good result.

In versioncontrol i noticed the only thing that's changed are the extentions for the include files.

Is this normal behavior ?

What did i mis or do wrong ?


Solution

  • I found the cuase of my problem.

    In visual studio each file i create is in UTF-8 encoding.

    What i need to do is change the encoding from UTF-8 to ANSI.

    Problem solved.