ISO-8859-1 encoding

Victor Volle's Avatar

Victor Volle

15 Jan, 2016 09:56 AM

I have to write a text in ISO-8859-1 (don't ask!).
Unluckily Marked 2 cannot open it. Is this by design or a bug?

  1. Support Staff 1 Posted by Brett on 15 Jan, 2016 04:35 PM

    Brett's Avatar

    I'm not able to replicate this locally by saving a file from Sublime
    Text as ISO-8859-1 (it opens without question in Marked). Can you attach
    a file with the encoding you're dealing with for inspection?

    Also, is it an option to save it as UTF-8 and convert the encoding
    before submission?

    -Brett

  2. 2 Posted by Victor Volle on 15 Jan, 2016 04:57 PM

    Victor Volle's Avatar

    Hi Brett!

    Thx for getting back to me.
    I have the file attached. And yes, I can work with UTF-8 and then convert it. I was just surprised that it doesn’t work.

    btw: I use Version 2.5.3 (910)

    Kind Regards
    Victor

  3. Support Staff 3 Posted by Brett on 15 Jan, 2016 05:38 PM

    Brett's Avatar

    Are other files working fine for you?

    My system recognizes that as UTF-8:

    $ file ix-0.1.mmd
    ix-0.1.mmd: UTF-8 Unicode text, with very long lines

    And Marked opens it fine on the first try. I'm wondering if there are
    any other possible issues. Could you go to Preferences->Advanced and
    enable Debug mode set to "All"? Then attempt to open the file and check
    the Help->Show Debug Log and let me know what you see.

    -Brett

  4. 4 Posted by Victor Volle on 15 Jan, 2016 06:00 PM

    Victor Volle's Avatar

    Hi Brett!

    This is the log from two unsuccessful attempts to open the file

    > 2016/01/15 18:53:36:174 | Processing document [2016-01-15 17:53:36 +0000]
    > 2016/01/15 18:53:36:174 | file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd opened with encoding 0
    ! 2016/01/15 18:53:36:174 | Error opening, trying again
    > 2016/01/15 18:53:37:175 | file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd opened with encoding 123145305061456
    !!2016/01/15 18:53:37:175 | ERROR text is nil for /Users/vivo/workspaces/me/ix/text/ix-0.1.mmd
    !!2016/01/15 18:53:37:176 | Loading failed
    > 2016/01/15 18:53:37:177 | Done loading from baseURL
    > 2016/01/15 18:53:37:177 | Finished processor operation
    > 2016/01/15 18:53:37:177 | Window feature handling finished
    > 2016/01/15 18:54:39:363 | Shutting down watchers, closing window
    > 2016/01/15 18:54:56:800 | Processing document [2016-01-15 17:54:56 +0000]
    > 2016/01/15 18:54:56:800 | file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd opened with encoding 123145303451728
    ! 2016/01/15 18:54:56:800 | Error opening, trying again
    > 2016/01/15 18:54:57:802 | file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd opened with encoding 123145303451728
    !!2016/01/15 18:54:57:802 | ERROR text is nil for /Users/vivo/workspaces/me/ix/text/ix-0.1.mmd
    !!2016/01/15 18:54:57:802 | Loading failed
    > 2016/01/15 18:54:57:803 | Done loading from baseURL
    > 2016/01/15 18:54:57:803 | Finished processor operation
    > 2016/01/15 18:54:57:804 | Window feature handling finished
    > 2016/01/15 18:55:25:266 | Shutting down watchers, closing window

    and this is a successful attempt with UTF-8

    > 2016/01/15 18:58:40:044 | Processing document [2016-01-15 17:58:40 +0000]
    > 2016/01/15 18:58:40:046 | file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd opened with encoding 4
    > 2016/01/15 18:58:40:046 | Loading ix-0.1.mmd succeeded
    > 2016/01/15 18:58:40:046 | Checking for includes
    > 2016/01/15 18:58:40:046 | Inserting included files (processed) from file:///Users/vivo/workspaces/me/ix/text/
    ! 2016/01/15 18:58:40:046 | File /Users/vivo/workspaces/me/ix/text/#compare-1.png not found
    > 2016/01/15 18:58:40:046 | Watching /Users/vivo/workspaces/me/ix/text/compare-1.png (relative)
    > 2016/01/15 18:58:40:049 | Extracting fenced code blocks
    > 2016/01/15 18:58:40:051 | Extracted 0 code blocks
    > 2016/01/15 18:58:40:051 | Extracting scrippets
    > 2016/01/15 18:58:40:051 | Extracted 0 scrippets
    > 2016/01/15 18:58:40:052 | Processing Markdown using internal lib
    > 2016/01/15 18:58:40:052 | Using Github newlines
    > 2016/01/15 18:58:40:054 | Enabling SmartyPants
    > 2016/01/15 18:58:40:054 | Starting mmd conversion
    > 2016/01/15 18:58:40:054 | mmd conversion complete
    > 2016/01/15 18:58:40:054 | Removing "markdown='0'"
    > 2016/01/15 18:58:40:055 | Processed
    > 2016/01/15 18:58:40:055 | Removing "markdown='0'"
    > 2016/01/15 18:58:40:055 | Inserting included files (raw) from file:///Users/vivo/workspaces/me/ix/text/
    > 2016/01/15 18:58:40:055 | Watching /Users/vivo/workspaces/me/ix/text/compare-1.png (relative)
    > 2016/01/15 18:58:40:055 | Inserting included files (raw) from file:///Users/vivo/workspaces/me/ix/text/
    > 2016/01/15 18:58:40:055 | Watching /Users/vivo/workspaces/me/ix/text/compare-1.png (relative)
    > 2016/01/15 18:58:40:088 | Done loading from baseURL
    > 2016/01/15 18:58:40:088 | Finished processor operation
    > 2016/01/15 18:58:40:093 | Window feature handling finished
    > 2016/01/15 18:58:40:199 | JS: Beginning processing
    > 2016/01/15 18:58:40:204 | JS: Starting javascript processing
    > 2016/01/15 18:58:40:204 | JS: Base URL: /Users/vivo/workspaces/me/ix/text/
    > 2016/01/15 18:58:40:206 | JS: Updated header IDs
    > 2016/01/15 18:58:40:209 | JS: Generated TOC
    > 2016/01/15 18:58:40:209 | JS: Updating collapsed sections
    > 2016/01/15 18:58:40:211 | JS: Highlighting code blocks
    > 2016/01/15 18:58:40:212 | JS: Updated header IDs
    > 2016/01/15 18:58:40:217 | JS: Stored collapsed sections
    > 2016/01/15 18:58:40:218 | JS: Updating collapsed sections
    > 2016/01/15 18:58:40:221 | JS: Updating page breaks (hidden)
    > 2016/01/15 18:58:40:222 | JS: Word count on selection
    > 2016/01/15 18:58:40:222 | JS: GitHub task lists
    > 2016/01/15 18:58:40:222 | JS: Setting up link behaviors
    > 2016/01/15 18:58:40:223 | JS: Initializing spell checking
    ! 2016/01/15 18:58:40:223 | No spelling cache
    > 2016/01/15 18:58:40:224 | JS: No spelling cache, lazy check disabled.
    > 2016/01/15 18:58:40:224 | JS: Binding bookmarks
    > 2016/01/15 18:58:40:225 | JS: JavaScript finished
    > 2016/01/15 18:58:40:291 | JS: finished loading MathJax js
    > 2016/01/15 18:58:40:291 | JS: MathJax loaded, initializing
    > 2016/01/15 18:58:40:321 | JS: Syntax highlighting finished
    > 2016/01/15 18:58:40:593 | JS: Mathjax: Scrolling to diff
    > 2016/01/15 18:58:41:324 | JS: Fixing code block height
    > 2016/01/15 18:58:41:324 | JS: Fixing code block backgrounds
     

    Kind Regards
    Victor

  5. 5 Posted by Victor Volle on 15 Jan, 2016 06:07 PM

    Victor Volle's Avatar

    I just tried:

    ❯ file ix-0.1.mmd
    ix-0.1.mmd: ISO-8859 text, with very long lines
    

    so perhaps the file got mixed up or I sent the wrong (UTF-8) version? So I attached it again gzipped:

  6. Support Staff 6 Posted by Brett on 15 Jan, 2016 06:46 PM

    Brett's Avatar

    Yeah, that detected encoding is definitely wacky. I'll test with the new file shortly.

    Thanks,

    Brett

  7. Support Staff 7 Posted by Brett on 15 Jan, 2016 06:59 PM

    Brett's Avatar

    Ok, I am able to replicate now. Marked goes through a list of major
    encodings in order of most common, and if it finds none that match it
    takes a blind shot. I'd have to suggest working in UTF-8 if possible,
    then converting, but I'll look into broadening the range of readable
    types.

    -Brett

  8. 8 Posted by Victor Volle on 15 Jan, 2016 07:14 PM

    Victor Volle's Avatar

    Hi Brett!

    Thank you very much for taking the time.
    I _can_ work in UTF-8. Conversion with Sublime works fine.

    Kind regards
    Victor

    --
    France is Bacon!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac