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

Asked

Viewed 1,017 times

1

I have a coding problem (accentuation) with the template pattern of Bootstrap, specifically the carousel.

The official code has the goals defined thus:

<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 like: Beginning, Remarks, or any other accentuated word, even with the charset defined as utf-8 the page displays a diamond interrogation.

1 answer

1


Actually, guys, I’ve already solved it. The problem is that Bootstrap be related to HTML, CSS and Javascript. We do not define for template the type of the page that will apply that encoding.

For example, the page I was using retrieved sessions from ASP, so the accentuation didn’t work, so the ISS was not coding the page with UTF-8.

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

<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"> (...)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.