Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道让fill_textfield 接受query_field 中的big5 编码字符串的方法?我不断收到“未终止的字符串遇到文件结尾”错误:
require 'rubygems' require 'scrubyt' search_data = Scrubyt::Extractor.define do fetch 'http://www.google.com/ncr' fill_textfield 'q', '你好世界' submit end
已解决:2 字节 big5 字符与关闭字符串的“'”混淆。在中文后面加一个空格就可以了。