看板 Ruby 關於我們 聯絡資訊
我將含有中文字的字串與其他字串相加的時候 會發生錯誤訊息 incompatible character encoding: UTF-8 and ASCII-8BIT <Encoding::COmpatibError> 請問這個該怎麼處理呢 我使用的版本是 Ruby 1.9.1 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.220.71.34
godfat:方法很多,讀一下這個 (抱歉,我現在連不上,晚點再試) 11/17 19:05
godfat:blog.grayproductions.net/articles/ruby_19s_string 11/17 19:05
JustinHere:建議用Ruby 1.9.2,並參考 http://tinyurl.com/7zhrky6 11/18 14:17