How to set the default UTF-8 page encoding in IIS on Windows Server?

1

I have an encoding problem with the default template of Bootstrap , specifically carousel .

The official code has the goal defined as follows:

<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible">
<meta content="charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">

<link rel="icon" href="favicon.ico"> (...)

But when I put words such as: Start , Observations , or any other accented words, even with charset set to utf-8 in diamond.

    
asked by anonymous 09.09.2015 / 23:00

1 answer

1

Actually folks, I've already figured it out. The problem is that since Bootstrap is related to HTML , CSS and Javascript. We do not define for template the type of page that will apply that encoding.

For example, the page I was using retrieved sessions from ASP , so the accent did not work, so ISS was not coding the page with UTF-8 .

I entered the code content text/asp and it worked, the same is true if you will use the Bootstrap template mixed with language pages on ISS servers:

<html lang="pt-BR">
<head>
<meta http-equiv="X-UA-Compatible">
<meta content="text/asp;  charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">

<link rel="icon" href="favicon.ico"> (...)
    
09.09.2015 / 23:00