Newlines + Encoding
Closed this issue · 6 comments
SMS Backup and Restore would mark the exported xml file as an invalid backup.
To fix this:
- Insert newlines after every line (
\n
). Currently it exports as one single line of text - Encode the file as UTF-8 (VS Code inferred that the existing encoding was UTF-16LE)
SMS Backup and Restore accepts the modified file as a valid backup. You do lose emojis though. There might be need to be a fix for parsing the emojis
I had a fix for the newline thing on another branch, but forgot to push it over to master. Didn't realise it was causing an issue with restoring it.
I can't reproduce an issue with encoding. Emoji appear to be encoded properly (not displayed on my computer, because I don't have an appropriate font, but the codepoint is correct). The backup correctly restores the emoji.
What OS and signal-back
version are you using?
I'm using Windows 10 Creators Update and signal-back
0.1.5
Does the issue occur if you use -o sms.xml
instead of piping the output?
I also came across an issue with the file being marked as invalid, and using -o sms.xml
fixed it for me
Closing as resolved unless this issue crops back up again.