New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JEX export corrupts notes on Joplin for Android #9069
Comments
I can confirm this. This seems to only affect JEX exports made on Android, however — unicode characters in iOS exports work as expected. As such, I suspect it's related to how we're using React Native FS (the |
This seems to be an issue with For example, const originalText = 'Test. 🕳️';
await fsDriver.writeFile(filePath, originalText, 'utf-8'); results in
written to Here's where we're using
Interestingly, I'm not seeing this issue reported upstream in We should be able to work around this by base64-encoding utf-8 data before sending to Work on a fix for this (that needs to be cleaned up) can be found here https://github.com/personalizedrefrigerator/joplin/tree/pr/fix-tar-create |
Thanks for the quick fix on this. I have since managed to correct all my notes. Just wondering what will determine when this code fix will be released to the Play store? |
Also, the Android changelog page seems to be broken: |
I've just corrupted my entire note collection (includes a good few hundred notes migrated from Evernote) after making the mistake of relying only on JEX backups and starting a fresh profile on Joplin based on the JEX import. Unfortunately all my backups were made using the Android app and I had only tested the JEX backup of the desktop app for initially deciding to migrate to Joplin and I didn't keep those backups. Doing a file search there's over 4000 hits which I now need to manually replace the characters with by making my best guess what they originally were.
The issue is that JEX backups on the Android app do not correctly store non standard characters and simply replace them with the ? character.
Environment
Joplin version: 2.12.2
Platform: Android
OS specifics: Using Android 10
Steps to reproduce
Describe what you expected to happen
Non standard characters should be retained in their original form, as is the case with the desktop app on Windows
Logfile
N/A
The text was updated successfully, but these errors were encountered: