utf coding in messages

  • Karel Svidensky
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 6 months ago #105713 by Karel Svidensky
utf coding in messages was created by Karel Svidensky
Hi Giang,

in messages which are prepared by you for using in Eshop - there are tags, which make problems with coding into Czech language (see the picture). We have special characters and these tags do not respect our language.
Where can I set the coding to utf-8 (?) which should solve this problem?

Another suggestion - in messages list there should be one more column with translation of the heading of the messages. The list without translation is not too "user friendly"... I am allways searching the right one... ;-)

Thank you

Karel
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #105932 by Andras
Replied by Andras on topic utf coding in messages
Same problem here.
If someone is filling out his name or address with special characters then in the database is filled with ? char.
Afterwards everywhere is going to be filled with this.
Emails, Invoice etc. also in the eshop orders menu ...
For example if i have special char in a option name, then on the invoice layout is also comes with ? char.
Some fix or maybe some help where to fix it it would be important.

Thank you.
Attachments:

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
6 years 6 months ago #105972 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic utf coding in messages
Dear all,

Sound like this wrong type with orders table in database. Please go to our ticket system at www.joomdonation.com/support-tickets.html to submit new ticket so I can help.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #105979 by Andras
Replied by Andras on topic utf coding in messages
Thanks for the help.
I have changed the database structure to utf8_general. This fixed the problem for messages and for the Eshop/Orders section.
The only which is still with ? chars is the Invoice layout.
In the database _eshop_order table the names are OK with special characters, but when i generate the PDF Invoice, they come with ? chars again.
Can you gove us some instructions where to fix this?
Thanks.

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
6 years 6 months ago #105980 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic utf coding in messages
Hello Andras,

Yes, please submit a new ticket to send me the super admin account to your site so I can help you to check that.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago - 6 years 6 months ago #105989 by Andras
Replied by Andras on topic utf coding in messages
.
Last edit: 6 years 6 months ago by Andras.

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #105990 by Andras
Replied by Andras on topic utf coding in messages
The trick here is the TC PDF

The solution for Eastern European characters is to change the font what you use in PDF layout.
For example:
Download and copy
dejavusans.php & dejavusans.z and dejavusans.ctg.z to /components/com_eshop/tcpdf/fonts/

Open helper.php from
/components/com_eshop/helpers/helper.php

Add to generateInvoicePDF function the following line and remove the old one.
$pdf->SetFont('dejavusans', '', 10, '', false);

This fixed the PDF Invoice layout character coding issue.
The following user(s) said Thank You: James Shields

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong