Skip to content

Commit

Permalink
Use the UTF8 conversion added to the String Class
Browse files Browse the repository at this point in the history
  • Loading branch information
Morton Jonuschat committed Jan 20, 2012
1 parent 71fe8e6 commit 0824efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/system_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SystemProfile < ActiveRecord::Base
# hash that can be used to create a new SystemProfile record.
def self.format_system_profiler_plist(system_profiler_plist_file)
xml_string = system_profiler_plist_file.read if system_profiler_plist_file.present?
self.format_system_profiler_hash(Plist.parse_xml(xml_string.force_encoding("UTF-8"))) if xml_string.present?
self.format_system_profiler_hash(Plist.parse_xml(xml_string.to_utf8)) if xml_string.present?
end

# Creates a SystemProfile object based on a system profiler
Expand Down

0 comments on commit 0824efd

Please sign in to comment.