From: Intransition Date: 2011-12-19T02:23:24+09:00 Subject: Encoding problem, YARD and JSON ------=_Part_376_7220937.1324229002197 Content-Type: multipart/alternative; boundary="----=_Part_377_29470507.1324229002197" ------=_Part_377_29470507.1324229002197 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I have a Hash object I am trying to convert to JSON using the `json` gem. Using #to_json I am getting this error: in `encode': "\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError) Most of the content of that hash is being extracted from the YARD api. Can anyone offer any idea on what the problem might be and how to fix? ------=_Part_377_29470507.1324229002197 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit I have a Hash object I am trying to convert to JSON using the `json` gem. Using #to_json I am getting this error:

    in `encode': "\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

Most of the content of that hash is being extracted from the YARD api.

Can anyone offer any idea on what the problem might be and how to fix?

------=_Part_377_29470507.1324229002197-- ------=_Part_376_7220937.1324229002197--