rasa icon indicating copy to clipboard operation
rasa copied to clipboard

Fix unicode handling in JSON serialization for SQLTrackerStore

Open droogg opened this issue 5 months ago • 1 comments

This pull request updates the JSON serialization within the SQLTrackerStore to preserve non-ASCII characters such as Cyrillic script. By setting ensure_ascii=False in json.dumps, the data is now stored in its original representation, allowing for proper storage and retrieval of non-ASCII characters. This change addresses issues with Unicode encoding in the database, ensuring that intent and action names containing Cyrillic characters are correctly represented.

Proposed changes:

  • Set ensure_ascii=False in json.dumps to preserve non-ASCII characters in the database.

Status (please check what you already did):

  • [ ] added some tests for the functionality
  • [ ] updated the documentation
  • [ ] updated the changelog (please check changelog for instructions)
  • [ ] reformat files using black (please check Readme for instructions)

droogg avatar Jan 10 '24 07:01 droogg

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 10 '24 07:01 CLAassistant