The Only World-Standard SEO Software

SEO and Internet Marketing Forum
Welcome, Guest ( Login | Register )

SEO SpyGlass windows-1251 code page
New Topic Add Reply
Page 1 of 1 [ 1 post ]
Author Message
borodatych

Tenderfoot

Tenderfoot
Posts: 6
Posted: Thu Aug 10, 2017 2:06 pm

Здравствуйте.

Вот такая ошибка:
Code:
java.nio.charset.IllegalCharsetNameException: "windows-1251"
   at java.nio.charset.Charset.checkName(Charset.java:315)
   at java.nio.charset.Charset.lookup2(Charset.java:484)
   at java.nio.charset.Charset.lookup(Charset.java:464)
   at java.nio.charset.Charset.forName(Charset.java:528)
   at com.agilemind.commons.io.pagereader.PageReaderContentImpl.a(PageReaderContentImpl.java:36)
   at com.agilemind.commons.io.pagereader.PageReaderContentImpl.getRedirectUrl(PageReaderContentImpl.java:155)
   at com.agilemind.factors.impl.parsers.PageFactorParser.getContent(PageFactorParser.java:6)
   at com.agilemind.factors.impl.parsers.PageInfoParser.check(PageInfoParser.java:3)
   at com.agilemind.factors.impl.parsers.PageInfoParser.check(PageInfoParser.java:14)
   at com.agilemind.factors.impl.parsers.SingleFactorParser.check(SingleFactorParser.java:2)
   at com.agilemind.factors.impl.SimpleFactorAnalyzer.check(SimpleFactorAnalyzer.java:2)
   at com.agilemind.commons.application.modules.io.cache.a.retrieve(a.java:1)
   at com.agilemind.commons.application.modules.io.cache.a.retrieve(a.java:3)
   at com.agilemind.commons.io.pagereader.cache.impl.LockedCache.get(LockedCache.java:2)
   at com.agilemind.commons.application.modules.io.cache.FactorValueCache.get(FactorValueCache.java:12)
   at com.agilemind.commons.application.tasks.f.executeAndReturn(f.java:10)
   at com.agilemind.commons.application.tasks.f.executeAndReturn(f.java:3)
   at com.agilemind.commons.modules.concurrent.util.operations.IndeterminateOperationWithResult.execute(IndeterminateOperationWithResult.java:1)
   at com.agilemind.commons.modules.concurrent.util.operations.Operation.executeOperation(Operation.java:81)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:748)


Пациент: http://samara.cataloxy.ru/firms/YULSUN.RU.htm

Есть лекарство или смериться?

Вдруг поможет..
В PHP схожая проблема решается так:
Code:
$content = iconv('CP1251','UTF-8',$content);
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');

$dom = new domDocument;
@$dom->loadHTML($content);


Возможно не правильно, но имеет место быть.

Display topics from previous:    Sort by    
New Topic Add Reply
Page 1 of 1 [ 1 post ]
All times are UTC

Jump to:  


cron