Bugs item #1038123, was opened at 2004-10-01 01:48
Message generated for change (Settings changed) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1038123&group_id=61302
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in toEncodedString method ?
Initial Comment:
the original code in TestContext.java:
165 public String toEncodedString(String text) {
166 try {
167 return new String(text.getBytes(),
encodingScheme);
168 } catch (UnsupportedEncodingException e) {
169 e.printStackTrace();
170 return text;
171 }
172 }
line 167 returns a bad string if the system default
Lang = en_US, incoming string "text" contains JA
characters, and encodingScheme is set to UTF-8.
... text.getBytes(encodingScheme), ... fixes the problem.
----------------------------------------------------------------------
Comment By: Veronica Baiceanu (vbaiceanu)
Date: 2005-01-04 17:05
Message:
Logged In: YES
user_id=1190158
I wanted to use JWebUnit to test web sites in Japanese, and
it seems that JWebUnit interprets Japanese characters as
question marks... I am having the system default US English,
and I am using UTF-8 encoding.
I didn't want to be involved with JWebUnit development (no
time), but I am stuck on this. I would be very grateful if
someone would confirm that this fix would indeed solve my
problem. In particular, I tried assertTitleEquals for a title with
Japanese characters, and got question marks. I replaced the
title of the web page with an English title, and had no
problems.
In any case, I thought it's worth mentioning my problem. I
also wonder if there is any release scheduled soon, which
would have this bug fixed.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2004-10-05 07:49
Message:
Logged In: NO
The assertTextInTable method doesn't work correctly with
multibyte characters because of this toEncodedString problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1038123&group_id=61302
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development