commit cc747dae57ba4b4387b002bec72c5c0b364a1a06
parent 088be9686241e0a95287d77dd151f89f612f1189
Author: Zeger-Jan van de Weg <mail@zjvandeweg.nl>
Date: Wed, 8 Apr 2015 19:51:55 +0200
Ruby 1.8 not supported anymore
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -366,8 +366,6 @@ class String
# Fix the damn string! make sure it is valid utf-8, then convert to
# user encoding.
- #
- # Not Ruby 1.8 compatible
def fix_encoding!
# first try to encode to utf-8 from whatever current encoding
encode!('UTF-8', :invalid => :replace, :undef => :replace)
@@ -390,8 +388,6 @@ class String
# transcode the string if original encoding is know
# fix if broken.
- #
- # Not Ruby 1.8 compatible
def transcode to_encoding, from_encoding
begin
encode!(to_encoding, from_encoding, :invalid => :replace, :undef => :replace)