php-reports icon indicating copy to clipboard operation
php-reports copied to clipboard

Error utf-8 pt-br

Open prefeiturasoledade opened this issue 9 years ago • 4 comments

Listing items for the Portuguese, it is necessary to change the method "getValue" the ReportValue.php

1 2

prefeiturasoledade avatar Sep 30 '16 19:09 prefeiturasoledade

Thanks for that man! Brigadão!

return htmlentities(utf8_decode($return));

Also works, and may be more correct. Dunno, just test it.

Still not sure why I can't use UTF-8 though. Eveything is in UTF-8. The non-report parts of my app also accept the same data fine (without the need for utf8_decode).

tavinus avatar Apr 24 '17 11:04 tavinus

same issue is solved for spanish too. thanks!

El 24 abr 2017, a las 8:10 a.m., Gustavo Arnosti Neves [email protected] escribió:

Thanks for that man! Brigadão!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jdorn/php-reports/issues/237#issuecomment-296621610, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXLii7wXl3OSQ8NamtimJFeCpWBBWwEks5rzIMpgaJpZM4KLcGg.

angra1982 avatar Apr 24 '17 12:04 angra1982

Hi, I am a newer in PHP. I am trying to build a php report within PHP-reports open source project, and I build a first report success with MYSQL. But the report's display content is not what I want. I had try to add "charset=utf8" on dsn or other method to fix the problem but can't solve it. Is anyone has solution? My MySQL charset is UTF8 and I can see the content with Chinese via other tool, so I think the DB's config is well. Attachment is what the report display. 1

JacksonWang avatar Sep 02 '20 05:09 JacksonWang

I would guess it is some encoding/decoding problem.

How is it in the source html rendered? Both the encoding tag and the actual encoded characters?


Did you try the fixes above?

Changing function getValue >

return htmlentities(utf8_decode($return));

or

return utf8_decode($return);

Been years since I used this.

tavinus avatar Sep 09 '20 01:09 tavinus