From 6e79d130df39d706cda2e0b63ea72e7fa50ff3c8 Mon Sep 17 00:00:00 2001 From: Caio Chassot Date: Mon, 11 Jan 2010 03:27:31 -0200 Subject: [PATCH] ruby 1.9 compat: Updated README example code to work with both ruby 1.8 and 1.9. --- README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README b/README index 3ff0bef..eada33e 100644 --- a/README +++ b/README @@ -8,7 +8,8 @@ Ya2YAML is "yet another to_yaml". It emits YAML document with complete UTF8 supp *code*: - $KCODE = 'UTF8' + # encoding: UTF-8 + $KCODE = 'UTF8' unless RUBY_VERSION >= '1.9' require 'ya2yaml' obj = [