Laurent Duperval wrote:

Hi,

I have text that looks like this in my html page:

<title>Re&ccedil;u</title>

If I try to match the title with that string, I get an error (in Eclipse) that says:

junit.framework.ComparisonFailure: expected:<...&ccedil;...> but was:<...?...>

it looks like somewhere, the text is being converted to UTF or something. This messes up my tests. Can I correct this in any way?

THanks,


Someone suggested offline that I but the UTF codes in my properties file and use that. I tried it and I get this:


junit.framework.ComparisonFailure: expected:<...ÃÂÂ...> but was:<...?...>

So it's still not working as I expected. In my properties file I replaced &ccedil; (Ã) with \uc3a7.

Does anyone know where this conversion takes place (from HTML entity to UTF character)? Can it be disabled? On the off chance that it may be in httpunit, I'm CC'ing that list.

Thanks,

L





-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to