Hi Marc, we found the problem. It's in our Apache configuration. After we added the following line to our .htaccess file, HtmlUnit responded correctly! We can now run webtest to verify our JP, KR, CN, and RU sites.
AddDefaultCharset UTF-8 Thanks for pointing us to check the HTTP Header. Thanks, Odilia Lee IT Web Services www.pmc-sierra.com -----Original Message----- From: Odilia Lee Sent: Tuesday, July 27, 2010 12:17 PM To: [email protected] Subject: RE: [Webtest] Japanese Characters failing in Webtest on Apache and not IIs Hi Marc: My name is Odilia and I work for Tim Pezarro. As per suggestion, I have added "storeHeader" in our test script. You sre right, HtmlUnit reads differently although the page source has the same meta tag: <meta http-equiv="Content-Type" content="text-html; charset=utf-8"> The webtest result I got from windows IIS server: name Content-Type property contentType => value text/html; charset=utf-8 The webtest result I got from apache: name Content-Type property contentType => value text/html Any suggestion on how can I make the HtmlUnit recognize the encoding? Thanks, Odilia Lee IT Web Services -----Original Message----- From: [email protected] on behalf of Tim Pezarro Sent: Tue 7/27/2010 7:09 AM To: [email protected]; Marc Guillemot Subject: RE: [Webtest] Japanese Characters failing in Webtest on Apache and not IIs Marc, Thanks for your suggestion. I will add a "storeHeader" step to record the value and report back to the mailing list with the results. Cheers, Tim Pezarro Manager, Web Services [email protected] Phone: +1-604-415-6044 Cell: +1-604-762-1000 Fax: +1-604-415-6602 PMC-Sierra, Inc. 8555 Baxter Place Burnaby, BC, Canada V5A 4V7 > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Marc Guillemot > Sent: Tuesday, July 27, 2010 7:05 AM > To: [email protected] > Subject: Re: [Webtest] Japanese Characters failing in Webtest on > Apache and not IIs > > Hi Tim, > > I meant http header, not meta tag. It would be interesting to look at > the encoding used by HtmlUnit to read the page in each case. > > Cheers, > Marc. > -- > Blog: http://mguillem.wordpress.com > > Tim Pezarro wrote: > > Marc, > > > > The page that passes and the page that fails both have this > encoding tag: > > > > <meta http-equiv="Content-Type" > content="text-html; charset=utf-8"> > > > > So I do not believe that is the cause of the trouble. > > > > Any other suggestions? > > > > Thanks, > > > > Tim Pezarro > > Manager, Web Services > > [email protected] > > Phone: +1-604-415-6044 > > Cell: +1-604-762-1000 > > Fax: +1-604-415-6602 > > PMC-Sierra, Inc. > > 8555 Baxter Place > > Burnaby, BC, Canada > > V5A 4V7 > > > > > > > >> -----Original Message----- > >> From: [email protected] > >> [mailto:[email protected]] On Behalf Of Marc Guillemot > >> Sent: Monday, July 26, 2010 11:44 PM > >> To: [email protected] > >> Subject: Re: [Webtest] Japanese Characters failing in Webtest on > >> Apache and not IIs > >> > >> Hi, > >> > >> can this be an encoding problem? Did you compare the > headers returned > >> in both cases? > >> > >> Cheers, > >> Marc. > >> -- > >> Blog: http://mguillem.wordpress.com > >> > >> > >> Tim Pezarro wrote: > >>> Hello, > >>> > >>> I am migrating http://www.adaptec.com/ja-jp/ from iis > >> hosting on windows > >>> server 2003 to apache hosting on RHEL 5. > >>> > >>> The verifyText step passes on the windows iis server > >>> http://www.adaptec.com/ja-jp/ but fails on the linux > >> apache test > >>> server (internal). > >>> > >>> Here is the fail message: > >>> > >>> # Result Name Parameter Duration > >>> 1 ok invoke > >>> Find keyword on http://tzu:9000/ja-jp/ Resulting page url > >>> http://tzu:9000/ja-jp/ > >>> 1781 > >>> 2 ok verifyText > >>> > >>> nested text Links > >>> 5 > >>> 3 x > >>> Error > >>> Page verifyText > >>> > >>> nested text ? > >>> 340 > >>> Error > >>> Message > >>> > >>> Step[verifyText (3/3)]: Text not found in page. Expected <?> > >>> Location > >>> > >>> /proj/webteam/webtest/vivian/tests/adaptec/keywords-jp.xml > >> (line: 20) > >>> > >>> Please suggest how to make this test past. > >>> > >>> Thanks, > >>> > >>> > >>> Tim Pezarro > >>> Manager, Web Services > >>> [email protected] > >>> Phone: +1-604-415-6044 > >>> Cell: +1-604-762-1000 > >>> Fax: +1-604-415-6602 > >>> PMC-Sierra, Inc. > >>> 8555 Baxter Place > >>> Burnaby, BC, Canada > >>> V5A 4V7 > >>> > >> > >> > >> _______________________________________________ > >> WebTest mailing list > >> [email protected] > >> http://lists.canoo.com/mailman/listinfo/webtest > >> > > _______________________________________________ > > WebTest mailing list > > [email protected] > > http://lists.canoo.com/mailman/listinfo/webtest > > > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

