Char Spaces = Error

Discussion and help for Easy Save 3
Post Reply
mikedg
Posts: 1
Joined: Fri Jan 24, 2020 3:41 pm

Char Spaces = Error

Post by mikedg »

The following code
ES3.Save<char>("chartest", ' ');
Debug.Log("char test: " + ES3.Load<char>("chartest"));

cayses
[Exception] FormatException: String must be exactly one character long.
Char.Parse() at 437ba245d8404784b9fbab9b439ac908

Seems a character written as a space is being stripped away when getting read back I'm shocked thsat nobody has run into this yet.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Char Spaces = Error

Post by Joel »

Hi Mike,

Thanks for making me aware of this, we’ve not had any reports of this before. It seems that this is a bug introduced two updates ago where the JSON parser is trying to remove whitespace from both sides of quotation marks.

This is an easy fix at our end, so if you send me your invoice number I can send you an update to address this.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply