Jump to content

PDF Invoice (No Unicode/umlaut support)


Dids

Recommended Posts

Thank you for the reply, though it seems that didn't change a thing.

I unzipped the files to the includes folder, overwriting some of the existing files.

 

I wonder if I need to clear a cache of some sort before it'll use the new fonts, or if the fonts are just not the problem here?

 

Might be that TCPDF isn't using UTF-8, or that there's something wrong when converting from the translation file (umlauts) to TCPDF, as it just prints out the values exactly like they are in the locale text file.

Link to comment
Share on other sites

Not sure exactly what you mean, so I tried to convert the whole file to utf-8. While it looks the same, WHMCS can't read it anymore.

If you meant using the letters ä and ö instead of ä and ö I've tried that before (not with the new fonts though) and WHMCS/PHP didn't seem to able to handle the letters.

 

Here's what the PDF looks like if I replace the umlaut-codes with actual letters: http://kimag.es/share/70572165.png

 

It's actually skipping letters, as the first row's supposed to say Päiväys and the second one's Eräpäivä.

Link to comment
Share on other sites

If I use the characters ä and ä they won't appear correctly (as seen in the screenshot). System charset is set to utf-8.

 

I'll see about converting the .tpl file, though, I don't see how that would do it any good?

 

Thanks for the help though. :-)

Link to comment
Share on other sites

  • 4 months later...

Hi,

 

Just thought to post a little info that can help out for those experiencing this.

This is done on commandline on *nix box with the file Norwegian.txt as example.

 

Check file info, encoding etc:

# file Norwegian.txt

 

Convert the file to UTF-8:

# iconv -f ISO-8859-1 -t UTF-8 Norwegian.txt > Norwegian-utf8.txt

 

Check the new file:

# file Norwegian-utf8.txt

 

Now copy the file Norwegian-utf8.txt to Norwegian.txt and overwrite the old file.

Remember to make sure that you have a backup of the file first.

 

 

Best regards

Jan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated