From: Aaron P. <aa...@te...> - 2010-01-06 04:04:07
|
Hello! I am attempting to use libyaml to emit UTF-8 strings. I expect this program: http://gist.github.com/269982 To output the following YAML document: --- 日本語 ... But instead it outputs this document: --- ! "\u65E5\u672C\u8A9E" ... I'm using version 0.1.3. I can't tell if this is an error on my part, or if this is expected behavior. I realize both documents represent the same data, but the behavior I'm seeing isn't really desirable. Thanks for the help! -- Aaron Patterson http://tenderlovemaking.com/ |
From: Anders K. <andersk@MIT.EDU> - 2010-01-06 04:10:32
|
On Tue, 5 Jan 2010, Aaron Patterson wrote: > I am attempting to use libyaml to emit UTF-8 strings. yaml_emitter_set_unicode(&emitter, 1); Anders |
From: Aaron P. <aa...@te...> - 2010-01-06 04:13:08
|
Anders Kaseorg wrote: > On Tue, 5 Jan 2010, Aaron Patterson wrote: >> I am attempting to use libyaml to emit UTF-8 strings. > > yaml_emitter_set_unicode(&emitter, 1); Ya, I figured that out 2 minutes after sending my original email. *doh* Thanks for the help though! -- Aaron Patterson http://tenderlovemaking.com/ |