Scrivener with german Umlauts in text

Markus's Avatar


30 May, 2023 08:53 AM

Hi Brett

I'm using Scrivener 3.3.1 (15588) together with Marked 2.6.22 (1040). For me Marked fails to preview the content of a text file of Scrivener if it contains german Umlauts. This does not concern the titles.

I attached a Scrivener file as a reference.


// Configuration (do not edit)
Marked 2 1040 (Direct)
macOS Version: 10.15.7
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 101
defaultProcessor: MultiMarkdown
enableMiniMap: YES
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: NO
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
permissionGranted: NO
printHeaderFirstPage: NO
printFooterFirstPage: NO
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
useCustomPreprocessor: NO
useFirstH1AsPrintTitle: YES

  1. Support Staff 1 Posted by Brett on 30 May, 2023 12:07 PM

    Brett's Avatar

    Your test file didn't contain any umlauts so I added my own and was able
    to view it in Marked. Just for the sake of proper testing, can you
    either send a new file that does contain umlauts, or maybe just reply to
    this with the line that should have been there?


    On 30 May 2023, at 3:55, Markus wrote:

  2. 2 Posted by Markus on 30 May, 2023 12:12 PM

    Markus's Avatar

    Sorry, I had deleted the line with the Umlauts for testing and forgot to put it in again. The attached file has them included.

    The line is as follows:

    Für das Geschenk möchte ich mich gebührlich bedanken.


  3. Support Staff 3 Posted by Brett on 30 May, 2023 12:41 PM

    Brett's Avatar

    This file renders fine for me, see attached image. I'm wondering if it has anything to do with the fact that you're on macOS 10.15 and I'm testing on macOS 13.4, as the Ruby setup has changed since then (Scrivener compilation uses a Ruby script to process).

    We can test this by opening Terminal and pasting the following command, modifying the path to the Scrivener file as needed (maybe need to modify /Applications too, if it's different on a German system):

    /Applications/Marked\ ~/Downloads/Umlaute-new.scriv

    Let me know if that makes sense, and if it does, let me know what output you get from it.

  4. 4 Posted by Markus on 30 May, 2023 12:46 PM

    Markus's Avatar

    In the terminal I get:

    Traceback (most recent call last):
      File "/Applications/Marked", line 971, in <module>
      File "/Applications/Marked", line 967, in main
      File "/Applications/Marked", line 261, in handle
        return self.optwrap(self.close())
      File "/Applications/Marked", line 273, in close
        self.outtext = self.outtext.join(self.outtextlist)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

  5. Support Staff 5 Posted by Brett on 30 May, 2023 12:49 PM

    Brett's Avatar

    Oh interesting, I’ve never seen the Python script portion of it have trouble with extended ascii. I’ll need some time to look into how to work around that, but will try to solve it this week. Thanks for the debugging help, I’ll post a test version of Marked for you as soon as I think I’ve solved it.

    On May 30, 2023 at 7:45 AM -0500, Markus <[email blocked]>, wrote:

  6. 6 Posted by Markus on 30 May, 2023 12:51 PM

    Markus's Avatar

    That's great :)

    Thank you

  7. Support Staff 7 Posted by Brett on 02 Jun, 2023 02:37 PM

    Brett's Avatar

    I think I have the problem solved. Please download below and confirm for me.

  8. 8 Posted by Markus on 02 Jun, 2023 04:09 PM

    Markus's Avatar

    Unfortunately I still get an empty window. The terminal says:

    Traceback (most recent call last):
    5: from /Applications/Marked 2 `<main>'
    4: from /Applications/Marked 2 `each_with_index'
    3: from /Applications/Marked 2 `each'
    2: from /Applications/Marked 2 `block in <main>'
    1: from /Applications/Marked 2 `markdownify'
    /Applications/Marked 2 `get_python_version': undefined method `empty?' for nil:NilClass (NoMethodError)

  9. Support Staff 9 Posted by Brett on 02 Jun, 2023 04:15 PM

    Brett's Avatar

    Shoot, I can fix that. Will have a new build in an hour.


  10. Support Staff 10 Posted by Brett on 02 Jun, 2023 04:34 PM

    Brett's Avatar

    Try this build, please:

    (sorry for the different download URL, something broke with my uploader
    to Marked assets)


    On 2 Jun 2023, at 11:09, Markus wrote:

  11. 11 Posted by Markus on 02 Jun, 2023 04:58 PM

    Markus's Avatar

    This version works :) I also tried a more complex Scrivener document and it shows up fine.

    Thank you very much for your quick support!


  12. Support Staff 12 Posted by Brett on 02 Jun, 2023 05:19 PM

    Brett's Avatar

    Excellent, thanks for helping me debug!


    On 2 Jun 2023, at 11:57, Markus wrote:

Reply to this discussion

Internal reply

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

Attaching KB article:


Already uploaded files

  • 37.3 KB

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


? 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