Skip to content

special characters are displayed wrong #26

@leonardoauer

Description

@leonardoauer

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions