Comments (3)
I cannot reproduce that, but haven't tried the community docker image yet. Any chance you can share a copy of such a file here as an attachment for checking the file encoding directly?
from files_texteditor.
The file is fine, I thoroughly checked the encoding.
It is also displaying fine in the Nextcloud Android app.
The problem is in the dual pane Markdown editor that opens when I click the file in .../index.php/apps/files?dir=/Notizen/Medien&openfile=122800
which gets me to .../apps/files/?dir=/Notizen/Medien&fileid=88758#filestexteditor
.
# cat vol/nextcloud/data/rj/files/Notizen/Medien/test.md
test äöü ⚰
# recode utf8..dump < vol/nextcloud/data/rj/files/Notizen/Medien/test.md
UCS2 Mne Description
0074 t latin small letter t
0065 e latin small letter e
0073 s latin small letter s
0074 t latin small letter t
0020 SP space
00E4 a: latin small letter a with diaeresis
00F6 o: latin small letter o with diaeresis
00FC u: latin small letter u with diaeresis
0020 SP space
26B0
Only when I edit the file and the editor saves it, then the encoding gets messed up. I removed the symbol that triggers the bug, but still:
# cat vol/nextcloud/data/rj/files/Notizen/Medien/test.md
test äöü
# recode utf8..dump < vol/nextcloud/data/rj/files/Notizen/Medien/test.md
UCS2 Mne Description
0074 t latin small letter t
0065 e latin small letter e
0073 s latin small letter s
0074 t latin small letter t
0020 SP space
00C3 A? latin capital letter a with tilde
00A4 Cu currency sign
00C3 A? latin capital letter a with tilde
00B6 PI pilcrow sign
00C3 A? latin capital letter a with tilde
00BC 14 vulgar fraction one quarter
I restored the file.
Here is the base64-encoded content for your diagnostics:
# base64 vol/nextcloud/data/rj/files/Notizen/Medien/test.md
dGVzdCDDpMO2w7wg4pqwCg==
By the way, the bug is not triggered by every character beyond U+00FF. With the € U+20AC it works fine. Same with ✄ U+2704. But with ⚰ U+26B0 it breaks.
Code point | Result |
---|---|
20AC | fine |
26A5 | broken |
26AF | broken |
26B0 | broken |
26B1 | broken |
26B2 | broken |
26FF | fine |
2704 | fine |
from files_texteditor.
Ah, you are using a different app then, let me move the issue
from files_texteditor.
Related Issues (20)
- Replace Travis with GitHub Actions
- Cursor spacing is wrong when typing the Thai language
- YAML syntax highlighting not working HOT 1
- Editing an existing txt file on ios reset contents without the possibility to recovery HOT 2
- I can't make collaborative edition
- soft wrapping of text HOT 1
- Text input from smartphones buggy due to autosave
- DOMPurify ReferenceError for shared file preview HOT 1
- Please add Compatibility for NC24 HOT 13
- Please add »source mode« for markdown editing HOT 2
- Please add YAML front matter support to be able to add meta data to markdown files
- Please add compatibility with NC25 HOT 5
- Replace phpunit.yml with split workflows
- [FR] Toggle wide screen
- Tables always use dark mode
- Please make your app `tested`
- [Bug] Adding a new line deletes a character on Android HOT 2
- File's content transformed in to "false" content HOT 2
- allow closing search by Escape key
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from files_texteditor.