Fix Unicode encoding issue in file operations #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-unicode-encoding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR addresses the Unicode encoding issue in the
create_fileandupdate_filefunctions by adding proper Unicode handling when encoding content to base64.\n\nChanges include:\n1. Added_safe_encode_contenthelper method to handle Unicode characters properly\n2. Added_safe_decode_contenthelper method for decoding base64 content\n3. Updatedcreate_fileandupdate_filefunctions to use these helper methods\n4. Improved error handling for encoding/decoding failures\n\nThis should resolve the "surrogates not allowed" UnicodeEncodeError that was occurring when trying to create or update files with certain Unicode characters.Pull request closed