I'm using LitJSON library but things gets a little bit odd.
Do you know any JSON library that keeps the accents when converting ?
Here's the test :
test.json
[{"id":"CS_001","name":"L'élément","type":"Tôt"},{"id":"CS_002","name":"L'outrage","type":"Tôt"},{"id":"CS_003","name":"Test","type":"Tôt"}]
test.cs
public class test : MonoBehaviour {
private string jsonString;
private JsonData cardData;
JsonData database;
void Start () {
jsonString = File.ReadAllText (Application.dataPath + "/test.json");
cardData = JsonMapper.ToObject (jsonString);
database = JsonMapper.ToJson (cardData);
Debug.Log (database.ToString ());
}
}
And the Debug.Log turns to :
[{"id":"CS_001","name":"L'\u00E9l\u00E9ment","type":"T\u00F4t"},{"id":"CS_002","name":"L'outrage","type":"T\u00F4t"},{"id":"CS_003","name":"Test","type":"T\u00F4t"}]
Any idea how to get a proper Json ? Even if it's with another JSON library.
Thank you very much.