Caracteres especiais no PDFGenerator

Community support in all Portuguese variants (pt_PT and pt_BR).

Moderator: Jo Morg

Locked
TPrigas
Forum Members
Forum Members
Posts: 16
Joined: Wed Mar 11, 2020 6:38 pm

Caracteres especiais no PDFGenerator

Post by TPrigas »

Olá pessoal,

Estou a tentar usar o módulo PDFGenerator no site que estou a desenvolver. funciona muito bem, excepto que ele não lida muito bem com os caracteres especiais do nosso português. Será uma limitação do módulo ou será que me escapou algum pormenor de codificação?

Obrigado, desde já...

TPrigas
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1953
Joined: Mon Jan 29, 2007 4:47 pm

Re: Caracteres especiais no PDFGenerator

Post by Jo Morg »

Olá TPrigas, bem-vindo ao nosso forum.
Tanto quanto sei o módulo suporta UTF-8, apesar de nunca o ter testado com textos em português.
Normalmente os CMSs suportam UTF-8 para todos os caracteres especiais tendo a base de dados de estar configurada para isso. Vou tentar testar o módulo num site com textos em Português assim que tiver algum tempo livre. No entanto confirme se a base de dados está configurada como descrevi.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
TPrigas
Forum Members
Forum Members
Posts: 16
Joined: Wed Mar 11, 2020 6:38 pm

Re: Caracteres especiais no PDFGenerator

Post by TPrigas »

Também ja me ocorreu verificar a configuração da base de dados e as tabelas estão em utf8_general_ci
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1953
Joined: Mon Jan 29, 2007 4:47 pm

Re: Caracteres especiais no PDFGenerator

Post by Jo Morg »

Ok! Assim que tiver um tempinho este fim de semana testo.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1953
Joined: Mon Jan 29, 2007 4:47 pm

Re: Caracteres especiais no PDFGenerator

Post by Jo Morg »

Ok o problema está relacionado com as fontes usadas nos PDFs que só suportam ANSI.
A solução: viewtopic.php?p=345328#p345328
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Locked

Return to “Portuguese - Português”