Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

special characters are displayed wrong #26

Open
leonardoauer opened this issue Sep 22, 2017 · 0 comments
Open

special characters are displayed wrong #26

leonardoauer opened this issue Sep 22, 2017 · 0 comments

Comments

@leonardoauer
Copy link

leonardoauer commented Sep 22, 2017

Hello, I'm using underscore-template-loader: ^0.8.0 and webpack
Special characters are wrong displayed in my web application.
Encoding of the index page is fine, UTF-8

I have an HTML like this:

<table class="table table-striped table-bordered table-hover">
  <thead>
    <tr>
      <th class="sorting_disabled" rowspan="1" colspan="1">
        <label>
          <input type="checkbox">
          <span class="text"></span>
        </label>
      </th>
      <th scope="col" class="sorting_asc">Número</th>
      <th scope="col" class="sorting">Data</th>
      <th scope="col" class="sorting text-center">Hora</th>
      <th scope="col" class="sorting text-center">Município</th>
      <th scope="col" class="sorting text-center">Logradouro</th>
      <th scope="col" class="sorting text-center">Serviço</th>
      <th scope="col" class="sorting text-center">Vítima</th>
      <th scope="col" class="sorting text-center">Placa</th>
    </tr>
  </thead>
  <tbody></tbody>
</table>

When I import it in my backbone.js application:

import occorrenciaTableTemplate from './ocorrencia-table-template.html';

The words with special characters are wrong displayed like this:

Número is displayed like N�mero
Serviço is displayed like Servi�o

Please help me with this I'm spending hours and I can't find a solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant