Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Unicode errors when casting tower_send data to_json for tower_receive (nested values) #747

Description

@tgates81

Due to the nested values tower_receive often produces (like a list of dictionaries) I've found it necessary to cast the register output to_json before sending to tower_send. This seems to work well except when it comes across special character encodings like a letter with an accent, to_json just chokes:

`

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 4: ordinal not in range(128)

`

I can't figure out a way around this despite using b64de(encode) filters. Am I incorrect in casting the output from tower_receive to_json or is this is a separate issue? Either way documentation should reflect what to do.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions