Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    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