From 9f1241865b2b5966e9bf40e99cfb0ba9eb268fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E4=BF=8A=E5=8B=87?= Date: Fri, 31 Oct 2014 00:25:09 +0800 Subject: [PATCH] Update __init__.py --- pyaml/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyaml/__init__.py b/pyaml/__init__.py index 4ff185e..1cf834b 100644 --- a/pyaml/__init__.py +++ b/pyaml/__init__.py @@ -136,7 +136,7 @@ def dump(data, dst=unicode, safe=False, force_embed=False, vspacing=None): buff = io.BytesIO() Dumper = PrettyYAMLDumper if safe else UnsafePrettyYAMLDumper Dumper = ft.partial(Dumper, force_embed=force_embed) - yaml.dump_all([data], buff, Dumper=Dumper, default_flow_style=False, encoding='utf-8') + yaml.dump_all([data], buff, Dumper=Dumper, default_flow_style=False, encoding='utf-8', allow_unicode=True) if vspacing is not None: dump_add_vspacing(buff, vspacing)