Menu

#47 Tag.get("value") character encoding conversion error

open
nobody
5
2011-03-06
2011-03-06
Anonymous
No

when i try to get the value of the Tag which contains internationalized character (possibly UTF-8)

watij gives the error belove.I'am using mac os 10.6 with java 1.6 and webspec 1.3.1 .I am instantiating the webSpec object with the code given below.
WebSpec spec = new WebSpec().safari();

2011-03-06 20:53:29.947 java[6500:903] An uncaught exception was raised
2011-03-06 20:53:29.947 java[6500:903] Conversion to encoding 30 failed for string "Aliağa"
2011-03-06 20:53:29.947 java[6500:903] *** Terminating app due to uncaught exception 'NSCharacterConversionException', reason: 'Conversion to encoding 30 failed for string "Aliağa"'
*** Call stack at first throw:
(
0 CoreFoundation 0x00007fff821067b4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff850be0f3 objc_exception_throw + 45
2 Foundation 0x00007fff8028377c bytesInEncoding + 689
3 Foundation 0x00007fff80304a8f -[NSCFString cString] + 158
4 libjniwrap.jnilib 0x0000000117f7948b ff7 + 42
5 libjniwrap.jnilib 0x0000000117f79d7b Java_com_jniwrapper_Function_invokeCFunc + 123
6 ??? 0x0000000103811c88 0x0 + 4353760392
)
terminate called after throwing an instance of 'NSException'

Discussion


Log in to post a comment.

Auth0 Logo