Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Invoice Template encoding - utf
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Invoice Template encoding - utf

Invoice Template encoding - utf 11 years, 11 months ago #36006

Hi, I am using J2.5.8 and Virtuemart 2.0.18.

I would like to know if there is a way to change the encoding in Invoice Template page editor.

I want to put some custom text in there. The text needs to have UTF-8, since its not in English.

If I write it there and click save, all the non English charecters are converted to ?? ?? ?? Signs.

Thank you in advance.
The topic has been locked.

Re: Invoice Template encoding - utf 11 years, 11 months ago #36021

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

There is necessary to use font with all utf8 characters or all those characters you want to use. VM Invoice allows you to use standard fonts with basic english character set, or fonts with Western Europe character set or full utf8 charset.

You can check it in: Global Configuration -> Page Appearance -> PDF Font. If you want to use full utf8 charset, then select Free Sans (UTF-8).

There is also possibility to create your own fonts from ttf files. You can find many online generators on the internet what will transform yout fonts to font usable by TCPDF. These fonts upload to:
{project_root}/administrator/components/com_vminvoice/libraries/tcpdf/fonts/
System will find them automatically.

But be careful, some online generators do not generate fonts with special characters, but only basic charset.
ARTIO Support Team
The topic has been locked.

Re: Invoice Template encoding - utf 11 years, 11 months ago #36031

Thank you for your reply, but it seems I did not explain my issue clear enough.

The font is UTF-8 and all the characters are printed fine, but only if they are done through the Language file.
If I want to directly write some text into the template editor, and after saving the layout, the characters all get messed up.
I am attaching an example.

Thank you in advance

1.jpg
The topic has been locked.

Re: Invoice Template encoding - utf 11 years, 11 months ago #36045

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

do you use utf8 in your database? We have no problem with special characters in our demo site.
ARTIO Support Team
The topic has been locked.

Re: Invoice Template encoding - utf 11 years, 11 months ago #36137

Thank you for your answer ! The problem was in the database. All my tables were UTF8, except the VM invoice ones. those were Latin. I changed the columns to utf8 and everything is fine now.

However I have no idea why the table encoding was like that in the first place. All other extensions were fine. I did the install on a WAMP server and then moved to my usual hosting provided. Never had similar experience. Just sharing.

Thanks again.
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný