mvz / happymapper

Object to XML mapping library, using Nokogiri (Fork from John Nunemaker's Happymapper)
http://github.com/mvz/happymapper/
MIT License
151 stars 44 forks source link

Issue #53: Allow to specify :enconding as a #parse option, when Happy… #202

Open amseledka opened 2 years ago

amseledka commented 2 years ago

…Mapper is included within a class

Fixes #53 when HappyMapper is included in a class

Allows to specify the encoding to a #parse as an option, to explicitly set the encoding to Nokogiri::XML document

example:

 Address.parse(xml, single:true, encoding: 'UTF-8')