Git Product home page Git Product logo

Comments (6)

Thiht avatar Thiht commented on August 18, 2024

It's because of the default encoding of your browser. Since .md files are text files, their encoding is not provided, so the browser opens it with its default encoding (probably ISO-8859-1 or Windows-1252 in your case). It's a bit tricky to fix (I thought just adding a <meta charset="utf-8" /> would work but I was wrong) but I'll give it a try.
For now, you can change the default encoding of Firefox to UTF-8, it'll work.

from markdown-viewer.

DunkelKolar avatar DunkelKolar commented on August 18, 2024

Your tip works, but I need to set the option (View/Character encoding/Unicode) each time I refresh the file viewing. Is there a way to setup unicode for text/plain file in Firefox ?

from markdown-viewer.

Thiht avatar Thiht commented on August 18, 2024

I think there's a way to dynamically change the encoding using XPCOM, I'll try this asap.

from markdown-viewer.

Kaligule avatar Kaligule commented on August 18, 2024

I do have this problem too. It would be nice to be able to set the default when when opening a file.

from markdown-viewer.

Thiht avatar Thiht commented on August 18, 2024

Fixed with PR #24

from markdown-viewer.

nodiscc avatar nodiscc commented on August 18, 2024

Thanks!

from markdown-viewer.

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.