Internationalize plugin

0

Hello! I'm using a standard jQuery dataTable, but even with charset set to "UTF-8" the translation parts with accents are represented by: . Would anyone know a solution to fix this internationalization?

My head looks like this:

<head>
 <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <title>Categorias</title>

        <!-- Núcleo Bootstrap CSS-->
        <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

        <!-- Customização de fontes-->
        <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">

        <!-- Page level plugin CSS-->
        <link href="vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">

        <!-- Estilo de customização do template-->
        <link href="css/sb-admin.css" rel="stylesheet">

        <script src="vendor/jquery/jquery.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $('#dataTable').dataTable( {
                    "language": {
                        "url": "traducoes/traducao_table.txt"
                    }
                } );
            } );
        </script>

The translations file looks like this:

{
    "sEmptyTable": "Nenhum registro encontrado",
    "sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros",
    "sInfoEmpty": "Mostrando 0 até 0 de 0 registros",
    "sInfoFiltered": "(Filtrados de _MAX_ registros)",
    "sInfoPostFix": "",
    "sInfoThousands": ".",
    "sLengthMenu": "_MENU_ resultados por página",
    "sLoadingRecords": "Carregando...",
    "sProcessing": "Processando...",
    "sZeroRecords": "Nenhum registro encontrado",
    "sSearch": "Pesquisar",
    "oPaginate": {
        "sNext": "Próximo",
        "sPrevious": "Anterior",
        "sFirst": "Primeiro",
        "sLast": "último"
    },
    "oAria": {
        "sSortAscending": ": Ordenar colunas de forma ascendente",
        "sSortDescending": ": Ordenar colunas de forma descendente"
    }
}
    
asked by anonymous 31.08.2018 / 05:45

0 answers