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 6812075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:24:18+00:00 2026-05-26T20:24:18+00:00

i currently try to import some XML via XMLSimple in my RoR-3 App. on

  • 0

i currently try to import some XML via XMLSimple in my RoR-3 App.

on 1 position, that XML stores a YAML-Structure. Dont slap me, i did not create the xml 😉

now that i have it stored in a variable, lets say yamldata, i want to parse its content.

so i do:

chunks = YAML::load yamldata

and thats pretty it.

when i now echo these chunks-values to console, it get this:

  • Bülach vert

what i wanted to have is:

  • Bülach vert

when i use exact same sourcecode in IRB, i actually get this ‘ü’ instead of ‘ü’.

i really dont know what to do here.


my Gemfile:

cat Gemfile

source 'http://rubygems.org'

gem 'rails', '3.1.0'
gem 'mysql2'
gem 'haml'
gem 'activerecord', :require => "active_record"
gem 'xml-simple'
gem 'hpricot'

ruby -v:
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

i`d be happy with any idea.

Note: i echo these values before!! i store them into a model, so i guess that its not a sql-related issue – however, db-encoding is utf8 too.

any idea? Thanks!

thanks to the helpers! 🙂

  • 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-05-26T20:24:19+00:00Added an answer on May 26, 2026 at 8:24 pm

    i found that irb does use Syck, rails Psych.
    so i guess this is the main difference… will research more..

    SOLUTION:

     require 'yaml'
     YAML::ENGINE.yamler= 'syck'
    

    into boot.rb and BAM!

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

Sidebar

Related Questions

I am currently using PIL. from PIL import Image try: im = Image.open(filename) #
I currently have MVS2008 and I want to try the 2010 version hoping that
Currently, I have a String object that contains XML elements: String carsInGarage = garage.getCars();
I have some classes that already use DOM4J to read XML files and provide
I'm currently (I try to) designing a RESTful API for a social network. But
I'm currently working with PHPUnit to try and develop tests alongside what I'm writing,
I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically
I am currently using code similar to this: try { // IE ONLY var
I am currently looking at the unload event of a window to try to
I am currently using two catch blocks after a try block. The first catches

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.