Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Taras Shypytiak
SEVERE: Encoding not supported: win-1251 [ reply ]  
2009-04-03 11:02
Thank you!!!

By: Jari Bakken
SEVERE: Encoding not supported: win-1251 [ reply ]  
2009-04-03 10:55
This error is not caused by Celerity - you will need to ask on the HtmlUnit list:

https://lists.sourceforge.net/lists/listinfo/htmlunit-user

By: Taras Shypytiak
SEVERE: Encoding not supported: win-1251 [ reply ]  
2009-04-03 10:50
Hi,all!
I'm so sorry for repeating question,but this problem becomes critical:

I have to click a button with the next attributes:<input type="submit" align="middle" " class="gob" value="GO" style="cursor: default;"/>

I'm used to click like browser.button(:value,"GO").click,as result I get Exception:
java.io.UnsupportedEncodingException: win-1251 (NativeException)
from sun/io/Converters.java:251:in `newConverter'
from sun/io/ByteToCharConverter.java:68:in `getConverter'
from sun/nio/cs/StreamDecoder.java:224:in `<init>'
from sun/nio/cs/StreamDecoder.java:210:in `<init>'
from sun/nio/cs/StreamDecoder.java:77:in `forInputStreamReader'
from java/io/InputStreamReader.java:83:in `<init>'
from org/cyberneko/html/HTMLScanner.java:895:in `setInputSource'
from org/cyberneko/html/HTMLConfiguration.java:478:in `setInputSource'
... 39 levels...

Is there any way to change encoding?
I don't know why,but Browser.new(:charset => "some-charset") doesn't make any effect

Thank you very much