tag:support.markedapp.com,2011-09-11:/discussions/questions/8698-iso-8859-1-encodingMarked: Discussion 2016-08-11T03:15:25Ztag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T09:56:52Z2016-01-15T09:56:52ZISO-8859-1 encoding<div><p>I have to write a text in ISO-8859-1 (don't ask!).<br>
Unluckily Marked 2 cannot open it. Is this by design or a bug?</p></div>Victor Volletag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T16:35:27Z2016-01-15T16:35:27ZISO-8859-1 encoding<div><p>I'm not able to replicate this locally by saving a file from
Sublime<br>
Text as ISO-8859-1 (it opens without question in Marked). Can you
attach<br>
a file with the encoding you're dealing with for inspection?</p>
<p>Also, is it an option to save it as UTF-8 and convert the
encoding<br>
before submission?</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T16:57:21Z2016-01-15T16:57:22ZISO-8859-1 encoding<div><p>Hi Brett!</p>
<p>Thx for getting back to me.<br>
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.</p>
<p>btw: I use Version 2.5.3 (910)</p>
<p>Kind Regards<br>
Victor</p></div>Victor Volletag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T17:38:29Z2016-01-15T17:38:29ZISO-8859-1 encoding<div><p>Are other files working fine for you?</p>
<p>My system recognizes that as UTF-8:</p>
<pre>
<code>$ file ix-0.1.mmd
ix-0.1.mmd: UTF-8 Unicode text, with very long lines</code>
</pre>
<p>And Marked opens it fine on the first try. I'm wondering if
there are<br>
any other possible issues. Could you go to Preferences->Advanced
and<br>
enable Debug mode set to "All"? Then attempt to open the file and
check<br>
the Help->Show Debug Log and let me know what you see.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T18:00:49Z2016-01-15T18:00:49ZISO-8859-1 encoding<div><p>Hi Brett!</p>
<p>This is the log from two unsuccessful attempts to open the
file</p>
<blockquote>
<p>2016/01/15 18:53:36:174 | Processing document [2016-01-15
17:53:36 +0000] 2016/01/15 18:53:36:174 | <a>file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd</a>
opened with encoding 0 ! 2016/01/15 18:53:36:174 | Error opening,
trying again 2016/01/15 18:53:37:175 | <a>file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd</a>
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 | <a>file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd</a>
opened with encoding 123145303451728 ! 2016/01/15 18:54:56:800 |
Error opening, trying again 2016/01/15 18:54:57:802 | <a>file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd</a>
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</p>
</blockquote>
<p>and this is a successful attempt with UTF-8</p>
<blockquote>
<p>2016/01/15 18:58:40:044 | Processing document [2016-01-15
17:58:40 +0000] 2016/01/15 18:58:40:046 | <a>file:///Users/vivo/workspaces/me/ix/text/ix-0.1.mmd</a>
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
<a>file:///Users/vivo/workspaces/me/ix/text/</a>
! 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 <a>file:///Users/vivo/workspaces/me/ix/text/</a>
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
<a>file:///Users/vivo/workspaces/me/ix/text/</a>
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</p>
</blockquote>
<p>Kind Regards<br>
Victor</p></div>Victor Volletag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T18:07:14Z2016-01-15T18:07:15ZISO-8859-1 encoding<div><p>I just tried:</p>
<pre>
<code>❯ file ix-0.1.mmd
ix-0.1.mmd: ISO-8859 text, with very long lines</code>
</pre>
<p>so perhaps the file got mixed up or I sent the wrong (UTF-8)
version? So I attached it again gzipped:</p></div>Victor Volletag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T18:46:26Z2016-01-15T18:46:26ZISO-8859-1 encoding<div><p>Yeah, that detected encoding is definitely wacky. I'll test with
the new file shortly.</p>
<p>Thanks,</p>
<p>Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T18:59:53Z2016-01-15T18:59:53ZISO-8859-1 encoding<div><p>Ok, I am able to replicate now. Marked goes through a list of
major<br>
encodings in order of most common, and if it finds none that match
it<br>
takes a blind shot. I'd have to suggest working in UTF-8 if
possible,<br>
then converting, but I'll look into broadening the range of
readable<br>
types.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/389284772016-01-15T19:14:56Z2016-01-15T19:14:57ZISO-8859-1 encoding<div><p>Hi Brett!</p>
<p>Thank you very much for taking the time.<br>
I <em>can</em> work in UTF-8. Conversion with Sublime works
fine.</p>
<p>Kind regards<br>
Victor</p>
<h2><a class="anchor" name="" href="#"></a></h2>
<p>France is Bacon!</p></div>Victor Volle