-----BEGIN PGP SIGNED MESSAGE-----
PaweÅ‚ Radecki wrote:
| Hi there,
| I’m trying to save multinational data to YAML with following simple
| require ‘yaml’
| # show “James B. 007: Nightfire in Chinese”
| # text in YAML form
| puts ‘è©¹å§†æ–¯é‚¦å¾·007ï¼šæš—å¤œä¹‹ç«’.to_yaml
| and what I get is:
| — “\xE8\xA9\xB9\xE5\xA7\x86\xE6\x96\xAF\xE9\x82\xA6\xE5\xBE
| How can I make this to be human readable text?
With an editor that understand UTF-8, I guess (considering that you use
characters I know from Polish, you probably already do). The OS has to
support UTF-8, too (I think that Windows does, and so should Mac OS X.
I’m not sure about other *NIX flavors).
If you mean Ruby, Iconv and Kconv are the way to go, AFAIK, to convert
strings between character sets.
Rule of Open-Source Programming #8:
Open-Source is not a panacea.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----