Method: Rex::Text.to_ebcdic
- Defined in:
- lib/rex/text.rb
.to_ebcdic(str) ⇒ Object
425 426 427 428 429 430 431 432 433 |
# File 'lib/rex/text.rb', line 425 def self.to_ebcdic(str) begin Iconv.iconv("EBCDIC-US", "ASCII", str).first rescue ::Iconv::IllegalSequence => e raise e rescue self.to_ebcdic_rex(str) end end |