How to Resolve Ionic Accentuation Problem

Asked

Viewed 57 times

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>

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

0

Browser other questions tagged

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