From 6053d313ce3abe876c7d05574effab438ce5e410 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Fri, 8 Jan 2016 11:21:54 -0800 Subject: Markdown source files: Use ... to end YAML metadata block Also add a newline after the metadata block. ... is easier on markdown-mode; if --- is used, the line immediately above it will be treated as a setext header and highlighted, which isn't so easy on the eyes. --- source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md') diff --git a/source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md b/source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md index d7f35d5c..d2f2ac06 100644 --- a/source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md +++ b/source/blog/2015-01-01-os-x-system-ruby-encoding-annoyance.md @@ -2,7 +2,8 @@ title: "OS X system ruby encoding annoyance" date: 2015-01-01T22:49:39-0800 date_display: January 1, 2015 ---- +... + I've been using RVM (with fairly up-to-date Rubies) and pry since my day one with Ruby (well, almost), so it actually surprises me today when I found out by chance how poorly the system Ruby behaves when it comes to encoding. The major annoyance with the current system Ruby (2.0.0p481) is that it can't convert `UTF8-MAC` to `UTF-8` (namely, NFD to NFC, as far as I can tell), at least not with Korean characters. Consider the following script: -- cgit v1.2.1