markor icon indicating copy to clipboard operation
markor copied to clipboard

File encode win1252

Open intellekta opened this issue 1 year ago • 4 comments
trafficstars

⚠️ This issue respects the following points: ⚠️

  • [X] This is a enhancement/feature request. Not a bug or question.
  • [X] The topic is not already reported at Issues. (I've searched it).
  • [X] Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • [X] The wanted feature/enhancement is not present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor's settings are not touched. If your desired feature is present, you don't need to open this issue. The change will be part of the next Markor update.)

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

-

intellekta avatar May 24 '24 20:05 intellekta

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.

gsantner avatar May 25 '24 10:05 gsantner

Thanks, pity that you can't adjust that.

intellekta avatar May 25 '24 11:05 intellekta

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 :)

harshad1 avatar May 26 '24 04:05 harshad1

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

intellekta avatar May 26 '24 09:05 intellekta