> On 6 May 2016, at 05:21, Macamba <[email protected]> wrote:
> 
> 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 should, and it is in the original .java file. The file is UTF-8 encoded, 
but you’re  getting a compile error "unmappable character for encoding Cp1252”, 
so it’s likely that your Java compiler is expecting a file encoded with 
CP-1252, or the file was broken at some point during download or SVN pull.

— John

> 
> Michel
> 
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to