ImportHandler: instead of failing when a non Ascii code is uploaded do a roundtrip conversion - Is this mergeable on 03/04/2020? Seems buggy#3796
ImportHandler: instead of failing when a non Ascii code is uploaded do a roundtrip conversion - Is this mergeable on 03/04/2020? Seems buggy#3796muxator wants to merge 1 commit intoether:developfrom muxator:lenient-import
Conversation
…loaded just convert it then convert it back This should mitigate the risk.
|
Do weird .etherpad export and .import test IE dump all emoticons in a pad and try export and import. Should work but \o/ |
|
This change is needed for avoid a crash (and then we can take it), or for having a working Libreoffice export? In that case, it did not work for me:
Is it ok to take this? If so, feel free to rebase & merge. |
|
Will look into thjis. |
|
PDF export does include lots of weird chars. HTML is right. So I wonder if the HTML > PDF soffice conversion needs a UTF8 flag too |
|
@muxator I'm being blocked by https://github.com/ether/etherpad-lite/pull/3783/files#diff-347748fef7777c7f23554905e9ead2c4R40 Where I'm asking for your help because I can't get the spawned process to get the right params. See #3783 My theory is that the Etherpad > HTML is fine but HTML > PDF is not reading the HTML file as UTF8 so the PDF is getting "mashed" by the characters :) |
Comes from the latest LibreOffice 6.4 packages from upstream: https://www.libreoffice.org/download/download/
Next thing I'll look at 👌 |
|
What's blocking on this? |
Basically, that this change avoids a failure when exporting a document, but there is at least a case (shown in my previous comment) where the resulting PDF export is crippled anyway. If there is a case in which this change allows a successful & correct PDF export, I'll be happy to merge it. Do we have an example document that we can test? |
|
Your crippled PDF export will have been due to soffice or abiword not being setup in |
I'll try again, but I hardly think there was a setup problem on my side 😄 |
|
This surprised me too. You can upload non supported file types w. out abiword/soffice set in settings.json... It caught me out, I ended up with mess in my pad. |
Tried it:
This worked for me even with the current develop (51e40dd), without needing to apply this PR I am trying to find a case that is failing without this PR, and succeeds afterwards. |
This PR includes a change by @JohnMcLear that was originally part of #3737 (about utf8 tests).
I merged all the other changes there, and left out this one because I would like more testing.
If testing is successful (and import/export with LibreOffice works well) this change can be integrated.