Comments (2)
Same problem here:
- The file was created with files_texteditor, I added some text, including some accentuated chars, euro symbol, etc.
At this point, I still could open it without any error. - I then added some pipe symbols (from CP437 encoding) and from then I couldn't open the file again, just the "false" at the begining of the file.
- I checked on the filesystem, the content of the file is complete, the reported encoding is UTF-8.
Actually, adding some traces to files_texteditor/lib/Controller/FileHandlingController.php,
I saw that my file is detected as Windows-1252 by mb_detect_encoding
instead of UTF-8
I also tried to force UTF-8, and in this case, the file is displayed correctly:
$encoding = 'UTF-8';
$fileContents = iconv($encoding, 'UTF-8', $fileContents);
from files_texteditor.
Related Issues (20)
- files_texteditor 2.14.0 not compatable with Nextcloud 19.0.4 HOT 1
- Old text strings in Transifex
- 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
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.