Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

[5.5.0b4] JsonUtility parse error when used Unicode

Discussion in '5.5 Beta' started by kou_yeung, Sep 21, 2016.

  1. kou_yeung

    kou_yeung

    Joined:
    Mar 24, 2016
    Posts:
    28
    Sample Code:
    Code (CSharp):
    1. [Serializable]
    2. public class Mascot
    3. {
    4.     [SerializeField]
    5.     public string Name;
    6. }
    7.  
    8. var mascot = new Mascot();
    9. mascot.Name = "ユニティちゃん";
    10.  
    11. var json = JsonUtility.ToJson(mascot);
    12. var resule = JsonUtility.FromJson<Mascot>(json); // error in this line
    Error Message
    ArgumentException: JSON parse error: Missing a closing quotation mark in string.
     
  2. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    Did you open a ticket for this?
     
  3. kou_yeung

    kou_yeung

    Joined:
    Mar 24, 2016
    Posts:
    28