[Skip to main content](#vessel-content)

#   Display utf-8 characters ir pdf invoice

##

- **[vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")**
- [![vu-ittc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28502-vu-ittc "View vu-ittc's Profile") Topic Author
- [ Offline](/forum/user/28502-vu-ittc)

Less More

- Posts: 12
- Thank you received: 0
-
-

12 years 10 months ago [\#134949](#134949) by [vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")  *[Display utf-8 characters ir pdf invoice](/forum/31-development/864058-display-utf-8-characters-ir-pdf-invoice#134949 "--http://parduotuve.joomlatvs.lt/joomla/ -- HikaShop Essential 2.2.2 -- Joomla! 2.5.14  Hello,  i get question mark (?) instead of letters ą, č, ę, ė, į, š, ų in pdf invoice files. IF there any way to change it?  The PDF Invoice should work with all characters, lithuanian, latvian, rusian and so on...  Regards, Arminas")* was created by *[vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")*

--http://parduotuve.joomlatvs.lt/joomla/
-- HikaShop Essential 2.2.2
-- Joomla! 2.5.14

Hello,

i get question mark (?) instead of letters ą, č, ę, ė, į, š, ų in pdf invoice files. IF there any way to change it?

The PDF Invoice should work with all characters, lithuanian, latvian, rusian and so on...

Regards,
Arminas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDA1OC1kaXNwbGF5LXV0Zi04LWNoYXJhY3RlcnMtaXItcGRmLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#135088](#135088) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display utf-8 characters ir pdf invoice](/forum/31-development/864058-display-utf-8-characters-ir-pdf-invoice#135088 "--http://parduotuve.joomlatvs.lt/joomla/ -- HikaShop Essential 2.2.2 -- Joomla! 2.5.14  Hello,  i get question mark (?) instead of letters ą, č, ę, ė, į, š, ų in pdf invoice files. IF there any way to change it?  The PDF Invoice should work with all characters, lithuanian, latvian, rusian and so on...  Regards, Arminas")*

Hi,

Can you check your "hikashop attachinvoice" plugin and see if you right have the lines (two times): Code:

$html2pdf = new HTML2PDF('P', 'A4', 'en',true, 'UTF-8');

It forces the initialization of the PDF library with the unicode support.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDA1OC1kaXNwbGF5LXV0Zi04LWNoYXJhY3RlcnMtaXItcGRmLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")**
- [![vu-ittc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28502-vu-ittc "View vu-ittc's Profile") Topic Author
- [ Offline](/forum/user/28502-vu-ittc)

Less More

- Posts: 12
- Thank you received: 0
-
-

12 years 10 months ago [\#135120](#135120) by [vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")  Replied by *[vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")* on topic *[Display utf-8 characters ir pdf invoice](/forum/31-development/864058-display-utf-8-characters-ir-pdf-invoice#135120 "--http://parduotuve.joomlatvs.lt/joomla/ -- HikaShop Essential 2.2.2 -- Joomla! 2.5.14  Hello,  i get question mark (?) instead of letters ą, č, ę, ė, į, š, ų in pdf invoice files. IF there any way to change it?  The PDF Invoice should work with all characters, lithuanian, latvian, rusian and so on...  Regards, Arminas")*

there is no such row in html2pdf.class.php file.

I think that is the matter of font. I have changed it to freesans. Now Lithuanian characters are shown, but it doesn't display bold. The BOLD characters in this font are shown like normal ones.

Any suggestion how to deal with this?

Arminas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDA1OC1kaXNwbGF5LXV0Zi04LWNoYXJhY3RlcnMtaXItcGRmLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#135124](#135124) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display utf-8 characters ir pdf invoice](/forum/31-development/864058-display-utf-8-characters-ir-pdf-invoice#135124 "--http://parduotuve.joomlatvs.lt/joomla/ -- HikaShop Essential 2.2.2 -- Joomla! 2.5.14  Hello,  i get question mark (?) instead of letters ą, č, ę, ė, į, š, ų in pdf invoice files. IF there any way to change it?  The PDF Invoice should work with all characters, lithuanian, latvian, rusian and so on...  Regards, Arminas")*

Hi,

No, I said to check the "attachinvoice" plugin file, which is named "attachinvoice.php".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDA1OC1kaXNwbGF5LXV0Zi04LWNoYXJhY3RlcnMtaXItcGRmLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")**
- [![vu-ittc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28502-vu-ittc "View vu-ittc's Profile") Topic Author
- [ Offline](/forum/user/28502-vu-ittc)

Less More

- Posts: 12
- Thank you received: 0
-
-

12 years 10 months ago [\#135293](#135293) by [vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")  Replied by *[vu-ittc](/forum/user/28502-vu-ittc "View vu-ittc's Profile")* on topic *[Display utf-8 characters ir pdf invoice](/forum/31-development/864058-display-utf-8-characters-ir-pdf-invoice#135293 "--http://parduotuve.joomlatvs.lt/joomla/ -- HikaShop Essential 2.2.2 -- Joomla! 2.5.14  Hello,  i get question mark (?) instead of letters ą, č, ę, ė, į, š, ų in pdf invoice files. IF there any way to change it?  The PDF Invoice should work with all characters, lithuanian, latvian, rusian and so on...  Regards, Arminas")*

I have these lines in attachinvoice.php file:

//$html2pdf = new HTML2PDF('P', 'A4', 'en');
$html2pdf = new HTML2PDF('P', 'A4', 'en',true, 'UTF-8');
$font = $this-&gt;params-&gt;get('font');

when I'm using arial lithuanian characters are shown as "?"
When I'm using freesans lithuanian characters are ok, but it doesn't show bold.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDA1OC1kaXNwbGF5LXV0Zi04LWNoYXJhY3RlcnMtaXItcGRmLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

12 years 10 months ago [\#135387](#135387) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display utf-8 characters ir pdf invoice](/forum/31-development/864058-display-utf-8-characters-ir-pdf-invoice#135387 "--http://parduotuve.joomlatvs.lt/joomla/ -- HikaShop Essential 2.2.2 -- Joomla! 2.5.14  Hello,  i get question mark (?) instead of letters ą, č, ę, ė, į, š, ų in pdf invoice files. IF there any way to change it?  The PDF Invoice should work with all characters, lithuanian, latvian, rusian and so on...  Regards, Arminas")*

Yes, it's a problem of font. Not all the fonts supports non-ASCII characters. You need to change the font in the options of the plugin into one which supports your characters. If the font that you select doesn't support bolding, I can only recommend you to try another one.
Unfortunately, adding bolding support to a font is not in the range of possibilities for us.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDA1OC1kaXNwbGF5LXV0Zi04LWNoYXJhY3RlcnMtaXItcGRmLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.144 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
