0

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 ?

Kris Nobels
  • 1,977
  • 2
  • 14
  • 23
  • 2
    just guessing... try changing encoding in your text editor and try to save files again. – Davor Mlinaric Sep 24 '13 at 11:54
  • If you open your files in Notepad and select Save As from the File dropdown, then select UTF-8 in the encoding dropdown rather than ANSI, this might solve your problem. I'm not sure how to perform this operation within VS itself, does anyone know? – John Sep 25 '13 at 14:34

2 Answers2

0

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.

Kris Nobels
  • 1,977
  • 2
  • 14
  • 23
0

In vs-2019, you can save a file with encoding:

  1. From the File menu, choose Save File As, and then click the drop-down button next to the Save button.

  2. The Advanced Save Options dialog box is displayed.

  3. Under Encoding, select the encoding to use for the file.

[https://learn.microsoft.com/en-us/visualstudio/ide/how-to-save-and-open-files-with-encoding?view=vs-2019#to-save-a-file-with-encoding][1]

maskier
  • 1
  • 1