UTF-8 Support

This topic contains 8 replies, has 3 voices, and was last updated by  Martin Mihailovski 6 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2078

    Martin Mihailovski
    Free User
    Post count: 7

    Hi Guys,

    Today i have installed the WP Invoice plug and PDF extension but as i can see, all characters that are typed in UTF-8 (Македонски Јазик) were showed as ???????? ??? ??

    I really need to fix it in order to use WP Invoice.

    Please support?

    Thanks!

    #2079

    Patrik
    Moderator
    Post count: 1971

    Hi Martin,

    Can you please provide us admin details and FTP details in private reply to look more into this? We need to know which language you are using and all.

    Regards,
    Patrik

    #2080

    Martin Mihailovski
    Free User
    Post count: 7
    This reply has been marked as private.
    #2082

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #2084

    Martin Mihailovski
    Free User
    Post count: 7
    This reply has been marked as private.
    #2091

    Patrik
    Moderator
    Post count: 1971

    Hi Martin,

    We suggest you create a clone of the live site without sensitive data and let us know the admin and FTP details in private reply so that we can look into it.

    Regards,
    Patrik

    #2104

    Martin Mihailovski
    Free User
    Post count: 7
    This reply has been marked as private.
    #2107

    Patrik
    Moderator
    Post count: 1971

    Hi,

    The issue is due to the default fonts used in PDF doesn’t support the language. “DejaVu Sans” font supports utf-8 so, I have added following code in functions.php of current active theme and it works now:

    
    
    add_action('wpinv_pdf_head', 'wpinv_pdf_head_cb');
    function wpinv_pdf_head_cb(){
        ?>
        <style type="text/css">
            * {font-family: DejaVu Sans !important;}
        </style>
        <?php
    }

    Let me know if you have any queries.

    Regards,
    Patrik

    #2108

    Martin Mihailovski
    Free User
    Post count: 7

    Problem solved!

    Thank you Patrik 🙂

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket