看板 Ruby 關於我們 聯絡資訊
Please add below code to the first line of you source file # encoding: UTF-8 ※ 引述《ireullin (raison detre)》之銘言: : 我將含有中文字的字串與其他字串相加的時候 : 會發生錯誤訊息 : incompatible character encoding: UTF-8 and ASCII-8BIT : <Encoding::COmpatibError> : 請問這個該怎麼處理呢 : 我使用的版本是 Ruby 1.9.1 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.71.188.164