0
Guys, I went to pass a data through the routes in Ionic, Angular, only the data is a string with accent, when I put the variable that receives the value to show in the title it shows good, however, when I enter another page and turn it converts the letter with accent to UTF-8 (for the research I’ve done). Also, I tried with Code reverse, but every time it comes in and out it converts again.
ngOnInit() {
this.inscricao = this.route.params.subscribe(param => {
this.tituloPesquisa = param['titulo']
});
this.listaProdutos = this.gSacola.getProdutos();
}
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button defaultHref="/"></ion-back-button>
</ion-buttons>
<ion-title>{{ tituloPesquisa }}</ion-title>
</ion-toolbar>
</ion-header>