# File lib/babelfish.rb, line 64
  def BabelFish.translate input_text, input_lang_code, output_lang_code, output_encoding = 'utf-8'
    output_page = Net::HTTP.post_form(
      SERVICE_URI,
      :eo => output_encoding,
      :lp => "#{input_lang_code}_#{output_lang_code}",
      :trtext => input_text.to_s
    )

    doc = Hpricot(output_page.body)
    (doc / '#result' / 'div').inner_html
  end