You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure we can encode/decode unicode characters in HAB_FREEZE.
Expected Behavior
You should be able to store unicode values in hab json files.
Steps to Reproduce Behavior
This code seems like it shows how encode_freeze and decode_freeze should be modified.
import base64
import json
in_dict = ["\U0001F389"]
data = json.dumps(in_dict)
# Encoding
data = data.encode('utf-8')
data = base64.b64encode(data)
data = data.decode("utf-8")
# Decoding
data = data.encode('ascii')
data = base64.b64decode(data)
data = data.decode('utf-8')
data = json.loads(data)
Solution
No response
Environment
All os's
Additional Context
The text was updated successfully, but these errors were encountered:
Summary
Ensure we can encode/decode unicode characters in HAB_FREEZE.
Expected Behavior
You should be able to store unicode values in hab json files.
Steps to Reproduce Behavior
This code seems like it shows how
encode_freeze
anddecode_freeze
should be modified.Solution
No response
Environment
All os's
Additional Context
The text was updated successfully, but these errors were encountered: