<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blogging and scraping &#187; Chinese characters</title>
	<atom:link href="http://www.tsnpc.com/tag/chinese-characters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tsnpc.com</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 22:54:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The poor support of the firewatir 1.6.5 to Chinese characters</title>
		<link>http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/</link>
		<comments>http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 09:05:41 +0000</pubDate>
		<dc:creator>leleba</dc:creator>
				<category><![CDATA[watir]]></category>
		<category><![CDATA[Chinese characters]]></category>

		<guid isPermaLink="false">http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/</guid>
		<description><![CDATA[I cannot figure out how to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5, I tried to change the encoding of the .rb file and the encoding of the firefox browser, but failed. require &#8216;rubygems&#8217; require &#8216;firewatir&#8217; ff = FireWatir::Firefox.new ff.goto &#8220;http://www.google.com&#8220; sleep 1 ff.text_field(:name, &#8216;q&#8217;).set(&#8216;?&#8217;) For Watir 1.6.5, the [...]]]></description>
			<content:encoded><![CDATA[<p>I cannot figure out how to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5, I tried to change the encoding of the .rb file and the encoding of the firefox browser, but failed.</p>
<p>require &#8216;rubygems&#8217; <br/>require &#8216;firewatir&#8217;</p>
<p>ff = FireWatir::Firefox.new <br/>ff.goto &#8220;<a href="http://www.google.com">http://www.google.com</a>&#8220;</p>
<p>sleep 1 <br/>ff.text_field(:name, &#8216;q&#8217;).set(&#8216;?&#8217;)</p>
<p>For Watir 1.6.5, the Chinese charaters can be supported by replacing the script WIN32OLE.codepage = WIN32OLE::CP_UTF8 with WIN32OLE.codepage = WIN32OLE::CP_ACP in the file of C:\Ruby\lib\ruby\gems\1.8\gems\watir-1.6.5\lib\watir\win32ole.rb <br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
