diff options
Diffstat (limited to 'lib/rexml/encodings/ISO-8859-15.rb')
-rw-r--r-- | lib/rexml/encodings/ISO-8859-15.rb | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/rexml/encodings/ISO-8859-15.rb b/lib/rexml/encodings/ISO-8859-15.rb index 3b0ac01d2f..b4c11ecee9 100644 --- a/lib/rexml/encodings/ISO-8859-15.rb +++ b/lib/rexml/encodings/ISO-8859-15.rb @@ -15,25 +15,25 @@ module REXML array_utf8.each do |num| case num # shortcut first bunch basic characters - when 0..0xA3: array_enc << num + when 0..0xA3; array_enc << num # characters removed compared to iso-8859-1 - when 0xA4: array_enc << '¤' - when 0xA6: array_enc << '¦' - when 0xA8: array_enc << '¨' - when 0xB4: array_enc << '´' - when 0xB8: array_enc << '¸' - when 0xBC: array_enc << '¼' - when 0xBD: array_enc << '½' - when 0xBE: array_enc << '¾' + when 0xA4; array_enc << '¤' + when 0xA6; array_enc << '¦' + when 0xA8; array_enc << '¨' + when 0xB4; array_enc << '´' + when 0xB8; array_enc << '¸' + when 0xBC; array_enc << '¼' + when 0xBD; array_enc << '½' + when 0xBE; array_enc << '¾' # characters added compared to iso-8859-1 - when 0x20AC: array_enc << 0xA4 # 0xe2 0x82 0xac - when 0x0160: array_enc << 0xA6 # 0xc5 0xa0 - when 0x0161: array_enc << 0xA8 # 0xc5 0xa1 - when 0x017D: array_enc << 0xB4 # 0xc5 0xbd - when 0x017E: array_enc << 0xB8 # 0xc5 0xbe - when 0x0152: array_enc << 0xBC # 0xc5 0x92 - when 0x0153: array_enc << 0xBD # 0xc5 0x93 - when 0x0178: array_enc << 0xBE # 0xc5 0xb8 + when 0x20AC; array_enc << 0xA4 # 0xe2 0x82 0xac + when 0x0160; array_enc << 0xA6 # 0xc5 0xa0 + when 0x0161; array_enc << 0xA8 # 0xc5 0xa1 + when 0x017D; array_enc << 0xB4 # 0xc5 0xbd + when 0x017E; array_enc << 0xB8 # 0xc5 0xbe + when 0x0152; array_enc << 0xBC # 0xc5 0x92 + when 0x0153; array_enc << 0xBD # 0xc5 0x93 + when 0x0178; array_enc << 0xBE # 0xc5 0xb8 else # all remaining basic characters can be used directly if num <= 0xFF @@ -54,14 +54,14 @@ module REXML array_latin9.each do |num| case num # characters that differ compared to iso-8859-1 - when 0xA4: array_enc << 0x20AC - when 0xA6: array_enc << 0x0160 - when 0xA8: array_enc << 0x0161 - when 0xB4: array_enc << 0x017D - when 0xB8: array_enc << 0x017E - when 0xBC: array_enc << 0x0152 - when 0xBD: array_enc << 0x0153 - when 0xBE: array_enc << 0x0178 + when 0xA4; array_enc << 0x20AC + when 0xA6; array_enc << 0x0160 + when 0xA8; array_enc << 0x0161 + when 0xB4; array_enc << 0x017D + when 0xB8; array_enc << 0x017E + when 0xBC; array_enc << 0x0152 + when 0xBD; array_enc << 0x0153 + when 0xBE; array_enc << 0x0178 else array_enc << num end |