From: Brian Candler Date: 2009-01-16T20:03:09+09:00 Subject: Re: ruby json library trouble Amazouz Loui wrote: > I've well prepared my structure in my program and I used the generate > method > to get the Jon output. But, during the generation, an error occurs > saying > that it met a character that is not utf-8 encoded.? Json *only* supports Unicode text. See http://www.unicode.org/ If you want to send arbitrary binary data, you need to encode it first into a textual form, e.g. using base64 encoding. If you want to sent 8-bit text which is not UTF-8, then you can transcode it to UTF-8 (probably the "right thing" in this context), or base64 encode it. -- Posted via http://www.ruby-forum.com/.