Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /proc/thread-self/root/opt/alt/ruby18/lib64/ruby/1.8/rexml/encodings/ |
Upload File : |
require "iconv" raise LoadError unless defined? Iconv module REXML module Encoding def decode_iconv(str) Iconv.conv(UTF_8, @encoding, str) end def encode_iconv(content) Iconv.conv(@encoding, UTF_8, content) end register("ICONV") do |obj| Iconv.conv(UTF_8, obj.encoding, nil) class << obj alias decode decode_iconv alias encode encode_iconv end end end end