Method: Rex::Text.from_ebcdic
- Defined in:
- lib/rex/text.rb
.from_ebcdic(str) ⇒ Object
Converts EBCIDC to ASCII
438 439 440 441 442 443 444 445 446 |
# File 'lib/rex/text.rb', line 438 def self.from_ebcdic(str) begin Iconv.iconv("ASCII", "EBCDIC-US", str).first rescue ::Iconv::IllegalSequence => e raise e rescue self.from_ebcdic_rex(str) end end |