Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detected an illegal character in input string #6

Open
razeta opened this issue Jan 23, 2012 · 4 comments
Open

Detected an illegal character in input string #6

razeta opened this issue Jan 23, 2012 · 4 comments

Comments

@razeta
Copy link

razeta commented Jan 23, 2012

Hello,

Maybe this is resolve somewhere but I could not find it clearly.

I have a dev enviromento for a system that creates a pdf file, its working fine in windows 7 using apache and mysql.

Then I upload the system to my linux centosOS prod enviroment and I am encoutering the following issue.

*Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/xxxx/public_html/DEV/XXXX/vendor/PHPPdf/lib/vendor/Zend/Pdf/Resource/Font/Simple/AbstractSimple.php line 271 *

Has someone dealt with this already and can provide a clue on whats wrong with my library implementation.

I am using a HOSTGATOR shared server,

I have the default configuration for the bundle, as described in the documentation.

Cheers.

@psliwa
Copy link
Owner

psliwa commented Jan 24, 2012

This is your hosting, php or iconv version issue, not PdfBundle nor PHPPdf.

271st line is:

return iconv($charEncoding, 'CP1252//IGNORE', $string);

"//IGNORE" suffix should supress this notice, but dosn't. Check php and iconv versions on your hosting and check changelogs of this versions, maybe there you will find bugfix.

@ghost
Copy link

ghost commented Feb 17, 2012

This error depends on your TTF font file. if your ttf file is not sutable your special character this error occurs. Try this in your
xml view
to

@razeta
Copy link
Author

razeta commented Mar 21, 2012

@sedatkocadogan sorry for the delayed response. I been busy, what can I try? the message was cut off I think.

Thanks for the help, I cant do anything on the server because is shared :(

So I need a walkaround.

Thanks.

@ghost
Copy link

ghost commented Mar 22, 2012

Hımm. Ok. this problem occurs non english characters in your string to send to PDF. Maybe you can edit your strings without non english characters. I solve this problem upload to server correct TTF font file.

Armstrong1992 pushed a commit to Armstrong1992/PdfBundle that referenced this issue May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants