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
{{ message }}
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
I have found that the convertUTF8ToBytes function in the charset module is not converting some data correctly. The first instance of this arises when trying to save binary data (such as images). The convertUTF8ToBytes function seems to be converting this binary data beyond recognition.
The second issue occurs when trying to save special characters such as smart quotes and other unicode characters.
The issue seems to be solved by not converting to bytes at all. I changed the function to the following:
I have found that the convertUTF8ToBytes function in the charset module is not converting some data correctly. The first instance of this arises when trying to save binary data (such as images). The convertUTF8ToBytes function seems to be converting this binary data beyond recognition.
The second issue occurs when trying to save special characters such as smart quotes and other unicode characters.
The issue seems to be solved by not converting to bytes at all. I changed the function to the following:
This seems to be working for me, but I haven't tested all possible scenarios.
Thanks for the help!
Devon
The text was updated successfully, but these errors were encountered: