Ticket #83 (assigned defect)
REXML does not appear to handle special characters inside a set of tags
| Reported by: | muppetmaster | Owned by: | ser |
|---|---|---|---|
| Priority: | normal | Milestone: | Deferred |
| Component: | DOM | Version: | 3.1.3 |
| Severity: | normal | Keywords: | |
| Cc: | Depili | Ruby version: | 1.8.5 |
| Operating system: | Unix |
Description (last modified by ser) (diff)
You may see the area below. This is a call to the Geocode API of Google and it does return a valid XML token. You may see the error below and here is the field it does not like:
<AdministrativeAreaName>Cataluña</AdministrativeAreaName>
As you may see, there is a special Spanish character returned.
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:85:in `parse': #<REXML::ParseException: Missing end tag for 'AdministrativeAreaName' (got "AdministrativeArea") (REXML::ParseException)
Line:
Position:
Last 80 unconsumed characters:
</Country></AddressDetails><Point><coordinates>2.148474,41.390046,0</coordinates>>
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:311:in `pull'
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:176:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
Missing end tag for 'AdministrativeAreaName' (got "AdministrativeArea")
Line:
Position:
Last 80 unconsumed characters:
</Country></AddressDetails><Point><coordinates>2.148474,41.390046,0</coordinates>
Line:
Position:
Last 80 unconsumed characters:
</Country></AddressDetails><Point><coordinates>2.148474,41.390046,0</coordinates> from /usr/lib/ruby/1.8/rexml/document.rb:176:in `build'
from /usr/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
Change History
Note: See
TracTickets for help on using
tickets.
