Skip to content

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

@jkleroy

Description

@jkleroy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions