---
title: Markdown Service Tools and UTF-8
date: 2014-01-09 12:00
slug: markdown-service-tools-and-utf-8
categories:
- Code
tags:
- markdown
- markdownservices
- mindmapping
- service
---

![](https://brettterpstra.com/uploads/2014/01/umlat.png)

The [Markdown Service Tools](http://brettterpstra.com/projects/markdown-service-tools/) have been updated to 2.10. I learned some new Ruby/UTF-8 tricks in the process, and they should all be capable of handling extended character sets now. Please download and test out the new versions. [Let me know](http://brettterpstra.com/contact/) if you still have any trouble with Umlats, Kanji, Cyrillic, etc.

I've also updated the [MarkdownToMindMap Service](http://brettterpstra.com/2013/08/18/markdown-to-mind-map/) to handle UTF-8 characters. It took me forever to figure out why they were getting mangled, but I believe I've solved it in the portion of the script that copies the output to the clipboard using `pbcopy`. For future reference, the line now looks like this:

	%x{printf "%b" #{Shellwords.escape(outdent(lines.join("\n")).strip)}|LANG=en_US.UTF-8 pbcopy}

The important part being `LANG=en_US.UTF-8 pbcopy`. Because it's calling out to a shell, the $LANG variable I use system-wide doesn't get set, but forcing it before the `pbcopy` command makes the utility respect UTF-8 encoding.

**[Download Markdown Service Tools v3.0.3](https://brettterpstra.com/downloads/MarkdownServiceTools3.0.3.zip)**

The Markdown Service Tools are a collection of macOS Services designed to make creating Markdown-formatted text that much easier. Services work in almos any macOS application.

[More info](https://brettterpstra.com/projects/markdown-service-tools/)

**[Download Markdown to MindMap v1.3](https://brettterpstra.com/downloads/MarkdownToMindMap1.3.zip)**

Convert plain text, Markdown headlines and Markdown lists to indented lists for pasting into mind mapping apps

[More info](https://brettterpstra.com/2013/08/18/markdown-to-mind-map/)

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
