pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: unmappable character for encoding Cp1252
Date Fri, 06 May 2016 12:26:23 GMT
Am 06.05.2016 um 14:21 schrieb Macamba:
> Hi all,
>
>   
>
> Is it me or is the EmbeddedFonts example in the pdmodel directory of the pdfbox examples
on SVN Apache not working?
>
>   
>
> I get The following output:
>
> src\org\apache\pdfbox\examples\pdmodel\EmbeddedFonts.java:63: error: unmappable character
for encoding Cp1252
>
>          stream.showText("English ÐÇÐâÐ?Ð?ð║ð©ð╣ Ð?ðÀÐïð║ Tiß║┐ng
Việt");
>
>                                        ^
>
> src\org\apache\pdfbox\examples\pdmodel\EmbeddedFonts.java:63: error: unmappable character
for encoding Cp1252
>
>          stream.showText("English ÐÇÐâÐ?Ð?ð║ð©ð╣ Ð?ðÀÐïð║ Tiß║┐ng
Việt");
>
>                                          ^
>
> src\org\apache\pdfbox\examples\pdmodel\EmbeddedFonts.java:63: error: unmappable character
for encoding Cp1252
>
>          stream.showText("English ÐÇÐâÐ?Ð?ð║ð©ð╣ Ð?ðÀÐïð║ Tiß║┐ng
Việt");
>
>                                                   ^
>
> 3 errors
>
> Error: Could not find or load main class src.org.apche.pdfbox.examples.pdmodel.EmbeddedFonts
>
>   
>
> Location: https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java?view=log
>
>   
>
> Line 63 in the code reads:
>
>          stream.showText("English русский язык Tiếng
Việt");
>
>   
>
> Should that not be human readable text?
Yes... it is human readable text with this link:

https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java?view=markup



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message