Giter VIP home page Giter VIP logo

Comments (4)

Ogefest avatar Ogefest commented on May 23, 2024

Hello my first issue reporter :)

I only want to confirm, you mean file content encoding? I'm linux user day by day and I was pretty sure that utf8 is common standard for encoding. Add default encoding in workspace settings seems be quite easy to do, if it's improve Notepack it make sense for me.

from notepack.

tomaspaukste avatar tomaspaukste commented on May 23, 2024

Hi, yes I mean file encoding. It seems that app gets default encoding from Windows locale settings. I'm using Lithuanian settings, so files are saved with character set Windows-1257.

But here you need to be careful, maybe add this utf-8 setting as optional, because if you will set it as default, current users after app update will not see their non-English symbols correctly.

Also another remark - Windows/Linux/Macintosh each system has different text line ending symbol (Windows - CR LF, Linux LF, Macintosh - CR), so it would be reasonable to follow it. Now current file in Windows has Linux line endings LF.

from notepack.

Ogefest avatar Ogefest commented on May 23, 2024

It take me more time than I thought before but I needed to prepare windows dev environment which was quite hard for long time linux user.

Anyway, I added extra checkbox in workspace configuration. If default encoding in system is UTF-8 like Ubuntu this checkbox is hidden but when system encoding is for example windows-1257 (I tested with windows-1250 - Poland here) then extra checkbox is available, if you set this on then all content saved is converting to UTF-8. Tested in many ways seems works as expected. You can check by yourself with 0.9.13 release

I have to think about end lines, for sure this could be an issue in some cases but right now I'm try to avoid overload settings in workspace configuration.

Thank you involve, if you have some ideas feel free to write them. I have plans to make Notepack best knowledge app for desktops

from notepack.

tomaspaukste avatar tomaspaukste commented on May 23, 2024

Thanks! Now it works well :)

from notepack.

Related Issues (13)

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.