Git Product home page Git Product logo

Comments (3)

juliushaertl avatar juliushaertl commented on July 17, 2024

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.

code-surfer avatar code-surfer commented on July 17, 2024

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.

juliushaertl avatar juliushaertl commented on July 17, 2024

Ah, you are using a different app then, let me move the issue

from files_texteditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.