0
Good night, Does anyone know how to solve the problem with Angular 6 accentuation?
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'Minha Primeira Aplicação' ;
}
Comes out like this:
Welcome to My First Apply the!
Solved:
When saving in Visual Studio you have to specify that it is to save with UTF-8 with and without signature worked. (File > Save as > Save with encoding(save button has a combo))
Thanks for the answer. I already had the Meta tag with Charset=utf-8, I believe it is something from Typescript or Angular itself.
– Renato Sucoski Siqueira
I did a test here and it worked, it can be a configuration of your server. You are using angular-cli?
– Eduardo Vargas
Yes Angular CLI to create the project, and then imported to Visual Studio 2017 to work, the server is the IIS Express of the visual studio
– Renato Sucoski Siqueira
must be a configuration of that server.
– Eduardo Vargas
I’ll check here, play straight to IIS, thank you very much, warning if it works
– Renato Sucoski Siqueira
I put in IIS, all the configurations UTF-8 and Portuguese Brazil and nothing yet :(
– Renato Sucoski Siqueira
It’s not a server, I created a new one with CLI, changed the app.Component and rodei with ng serve --open and gave the same problem. But I already figured out what it is, I opened the component with Notepad++ and changed it to UTF-8 without BOM so it worked, now it’s see in VS how to set up to save like this. Thank you very much for the good will :)
– Renato Sucoski Siqueira