This is a migrated thread and some comments may be shown as answers.

Text Encoding reading json file

0 Answers 40 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
contato
Top achievements
Rank 1
contato asked on 05 Jun 2014, 06:34 AM
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
Tags
General Discussion
Asked by
contato
Top achievements
Rank 1
Share this question
or