Skip to content
This repository has been 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

Open
tgates81 opened this issue Jan 15, 2020 · 0 comments

Comments

@tgates81
Copy link

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.

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

No branches or pull requests

1 participant