1

Android で PDF を解析しようとするたびに、UnsupportedEncodingException エラーが発生し続けます。誰かが理由を知っていますか?私のコーディングが正しいことは確かです。エラーのほとんどは、Unicode Big Unmarked または MacRoman です。

これがコードです...

public void parsePdf(URL pdf) throws IOException {
    PdfReader reader = new PdfReader(pdf.openStream());
    PdfTextExtractor pdfEx = new PdfTextExtractor(reader);
    try{
    System.out.println(pdfEx.getTextFromPage(1));
    }catch(Exception e){
        System.out.println(e.getLocalizedMessage());
        System.out.println(e.toString());

    }

これは例外です... 05-02 01:12:57.735: I/System.out(299): ExceptionConverter: java.io.UnsupportedEncodingException: UnicodeBigUnmarked

4

0 に答える 0