Text Encoding reading json file

1 posts, 0 answers
  1. contato
    contato avatar
    1 posts
    Member since:
    May 2014

    Posted 05 Jun 2014 Link to this post

    Hi there

    This is the code to datasource read json file, it can contains these "áóãç" special caracters , i tried to encode with utf-8 but did not works, by the way it shows in page inside a template(i dont known if it matters)

     dataSource = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "data/file.json",
                            dataType: "json",
                            contentType: "application/json; charset=utf-8"
                        }
                    }
                });

    Thanks
Back to Top