diff options
Diffstat (limited to 'lib/rexml/encodings')
-rw-r--r-- | lib/rexml/encodings/US-ASCII.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/encodings/US-ASCII.rb b/lib/rexml/encodings/US-ASCII.rb index f4e4527c2d..fe8f6df303 100644 --- a/lib/rexml/encodings/US-ASCII.rb +++ b/lib/rexml/encodings/US-ASCII.rb @@ -6,7 +6,7 @@ module REXML array_utf8 = content.unpack('U*') array_enc = [] array_utf8.each do |num| - if num <= 0xFF + if num <= 0x7F array_enc << num else # Numeric entity (&#nnnn;); shard by Stefan Scholl |