Skip to content

Unicode Problems #54

Description

@nexttonever

unicode is not good for some class, like Decimal, unicode will convert it to "Decimal xxx",but not pure number string. This could cause error. However it can be solved by manually convert that variable to str.
But sometimes it cannot be avoided. For example,
delete just one field:
{
"id": 1,
"fieldToBeDelete": {"set": None}
}

"None" will be serialized to "None" but not null, and Solr server will accept it as a new value,rather than to delete this field. This may be terrible.

Can you fix this problem? or moreover provide a way to replace 'unicode' by some option?

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