gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.82k stars 366 forks source link

File encode win1252 #2304

Open intellekta opened 5 months ago

intellekta commented 5 months ago

⚠️ This issue respects the following points: ⚠️

Description

My files are copied between Windows and Android and are ansi encode. Is it possible to set *.md files to this encoding?

Information

Android version: 14 Device: S24ultra App Version: 2.12.1

Source

F-Droid

Format / File type

Markdown

Additional info / Log

-
gsantner commented 5 months ago

Android/Java world as well most components, tools and libraries uses UTF-8 + \n line endings by default (or better say, support that fully and best). Which happens also to be the most common file encoding nowadays.

What would be possible that Markor detects win1252 encoding and converts it to UTF-8. Everything except Windows stoneage notepad.exe should be capable of handling UTF-8 + \n line endings.

intellekta commented 5 months ago

Thanks, pity that you can't adjust that.

harshad1 commented 5 months ago

Messing with crlf or encodings is likely to cause a lot of issues. Basically everything supports / requires utf-8 now.

@gsantner even notepad in windows 10+ supports utf-8 and unix line endings :)

intellekta commented 5 months ago

Thanks for the information, I switched to vscode for android.