Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializing a class that has an empty String value leads to exception #1

Open
jkleroy opened this issue Jul 16, 2015 · 1 comment
Open

Comments

@jkleroy
Copy link

jkleroy commented Jul 16, 2015

Hi,

I don't know yet if I'll be needing this class but it is impressive. Thanks for your great work.
I found an issue when a String property has an empty value.

*Scenario:
Add a String property to MyMinorClass. Let's name it "txt".

Run the project, click on the Serialize button.

Exception raised:
ErrorNumber: 0
Message: root{?}{?}{?}{?}: String value is not convertible to UTF-8
Reason: root{?}{?}{?}{?}: String value is not convertible to UTF-8

*Workaround: Set a default value <> "" to all String properties.

*Remarks: An empty Text property doesn't have this issue.

@ktekinay
Copy link
Owner

Thanks.

This is a known bug in the Xojo framework. The workaround is to store an empty Text where an empty String is detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants