Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8004377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:54:21+00:00 2026-06-04T16:54:21+00:00

I am querying an external service which is passing back JSON data. I’d like

  • 0

I am querying an external service which is passing back JSON data. I’d like to format this data as a binary PList to send it out to clients. How can I do that conversion in Rails? This is a complex data structure with arrays & hashes as well as strings & integers.

Based on the comment, I am trying this:

def friends_facebook
  @graph = Koala::Facebook::GraphAPI.new(current_user.facebook_token.token)
  render :plist => JSON.parse(@graph.get_connections("me", "friends").to_json)
end

Which results in the error (on the render line):

incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:54:23+00:00Added an answer on June 4, 2026 at 4:54 pm

    Using http://plist.rubyforge.org/ and http://flori.github.com/json/ :

    JSON.parse(input).to_plist
    

    You might have to write your own to_plist_node method(s) for your data structure(s).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm querying an external API and want to test out data inserts on a
Im not good in querying. I would like to ask if this query works.
Querying a Nested Set Model table , here's the SQL... how can this be
I am querying the Microsoft Office SharePoint Server Search Service to write some results
I'm querying MediaStore.Images.Media.EXTERNAL_CONTENT_URI and the query works fine. I'm able to get the data
My code is querying a server which, if the user and password are correct,
We've got a Qt application that configures external devices by querying their configure interface
Querying geospatial data in mongodb looks straight forward enough through the shell script, however,
When querying DNS server for the IP address, which one of the following is
on querying a camle jpa component like <from uri=jpa:jpa.camel?consumer.query=select x from jpa.camel x/> <to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.