phpjasper icon indicating copy to clipboard operation
phpjasper copied to clipboard

invalid byte 1 of 1-byte utf-8 sequence

Open elvispdosreis opened this issue 4 years ago • 6 comments

I am having trouble generating reports with compiled jrxml files. It presents the error "invalid byte 1 of 1-byte utf-8 sequence", both for the file compiled by Jaspersoft Studio and $jasper->compile($input)->execute();

I can only generate a report passing the jrxml for generation, if I compile before it gives an error, however it makes the report call slow

elvispdosreis avatar Feb 23 '21 15:02 elvispdosreis

I solved this invalid byte 1 of 1-byte utf-8 sequence problem by compiling jrxml file using jaspersoft Studio version 6.9. This package is using jasperreports-6.7.0.jar library. Maybe it has issues with latest Jaspersoft .jasper. Previously I was using jaspersoft v6.14 and faced the same problem. Hope it will help you @elvispdosreis

sultancoding avatar Mar 24 '21 23:03 sultancoding

same problem

naruone avatar Dec 21 '21 08:12 naruone

download jasperstarter(https://bitbucket.org/cenote/jasperstarter/downloads/), paste into bin/jasperstarter

it works for me (jaspersoft studio 6.18.1)

naruone avatar Dec 27 '21 08:12 naruone

PHPJasper 3.3.1 uses JasperStarter 3.5.1 which uses an old version of the JasperReports library. If you use the latest version of JasperStudio you will have problems compiling and processing reports with PHPJasper.

You can try saving the jrxml files with version 6.5 compatibility in JasperStudio and then compile the reports using the included version of JasperStarter in vendor/bin/geekcom/phpjasper/bin/jasperstarter/bin/.

Or you could try my fork of PHPJasper which is in PR #311 waiting for review by making the suggested changes in my comment of issue #299 before it makes it to the main PHPJasper in a future release.

Xint0-elab avatar Feb 22 '22 23:02 Xint0-elab

you solve me it worked,tenia el jaspersoft en la ultima version, simplemente descargue la version que indicas y funciona perfecto

SebasIBR avatar Sep 26 '22 18:09 SebasIBR