ruby1.9.2 String中的 encode, encode!, force_encoding.
摘要:
根据http://yugui.jp/articles/850这上面说的。ForaString,String#encodekeepsthecharactersbutchangestheencodinginwhichthecharactersareencoded.#encodeisnotdestructivebut#encode!isthedestructiveversion.Thebyterepresentationofacharacterisdependonencoding.So#encodeand#encode!generallychangethebyterepresentationofth 阅读全文
posted @ 2011-09-18 17:07 Eric812048774 阅读(772) 评论(0) 推荐(1) 编辑