Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Visual Studio 2013 - Copy & Paste of HTML containing Scandinavian characters gets � not ø, æ, å

$
0
0

I have a file, index.html, that contains the characters ø, æ, and å. I typed this page in manually on my Danish keyboard and everything displays just fine in the browser.

I create an empty file in the project, called page2.html and save it. I copy the contents of index.html and paste it into page2.html. I load the page in the browser and all æ ø å's are replaced with ���'s.

If I use sublime text, open the file, and paste the very same buffer into the file there, it loads and displays with the æ ø å's intact.

It seems to have something to do with the way the file is created or added to the project. If I right click the solution, add, new, HTML page and paste the buffer there the page displays fine.

If I simply drag the file onto the solution root, the encodes get buggered.

Is there a setting or something I am missing in VS2013 that is making it behave this way? I'd like to copy and paste without spontaneous encoding errors.

Thanks!


Viewing all articles
Browse latest Browse all 3509

Trending Articles