Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/top4r/ext/stdlib.rb
Instance Method Summary collapse
Instance Method Details
#to_gbk ⇒ Object
21 22 23 |
# File 'lib/top4r/ext/stdlib.rb', line 21 def to_gbk Iconv.iconv("GBK//IGNORE", "UTF-8//IGNORE", self).to_s end |
#to_utf8 ⇒ Object
25 26 27 |
# File 'lib/top4r/ext/stdlib.rb', line 25 def to_utf8 Iconv.iconv("UTF-8//IGNORE", "GBK//IGNORE", self).to_s end |