Dooratre commited on
Commit
8aa8028
·
verified ·
1 Parent(s): 3bc27c4

Update admin_messages.py

Browse files
Files changed (1) hide show
  1. admin_messages.py +2 -1
admin_messages.py CHANGED
@@ -46,7 +46,8 @@ def save_admin_message(page_id, message, sender_id, full_name):
46
  data[page_id].append(new_message)
47
 
48
  # Convert the updated data to JSON string WITHOUT indentation or line breaks
49
- new_content = json.dumps(data, separators=(',', ':'))
 
50
 
51
  # Get authentication tokens for GitHub
52
  authenticity_token, commit_oid = fetch_authenticity_token_and_commit_oid()
 
46
  data[page_id].append(new_message)
47
 
48
  # Convert the updated data to JSON string WITHOUT indentation or line breaks
49
+ # Use ensure_ascii=False to properly handle Arabic and other non-ASCII characters
50
+ new_content = json.dumps(data, separators=(',', ':'), ensure_ascii=False)
51
 
52
  # Get authentication tokens for GitHub
53
  authenticity_token, commit_oid = fetch_authenticity_token_and_commit_oid()