Author Topic: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs  (Read 34866 times)

rage76

  • Jr. Member
  • **
  • Posts: 153
I have added the Indian currency symbol with code '356' in the currency configuration in VM

but I find that in the invoice PDF, it shows a"?". Is there a step by step procedure on how to change this?

I am quite confused. I feel the new INR symbol should be incorporated in the default joomla/VM installation !!

Joomla 2.5.22
VM: 2.6

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #1 on: June 22, 2014, 15:48:09 pm »
You can see that the currency symbol works on the page. This is not a vm, nor joomla issue. Maybe you should enter an html entity instead of hex encoded stuff. Maybe you just copied the sign from somewhere. So actually your currency symbol is not utf-8 and not an html entity.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rage76

  • Jr. Member
  • **
  • Posts: 153
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #2 on: June 24, 2014, 18:47:10 pm »
Thanks for the reply Milbo. Please guide suitably to rectify this issue !! Shall be grateful

regards

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #3 on: June 25, 2014, 18:30:41 pm »
Don't think, Milbo has the time to explain the basics of encoding, check wikipedia: http://en.wikipedia.org/wiki/Indian_rupee_sign. Read about Unicode and use the HTML or UTF-8 character.

Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

rage76

  • Jr. Member
  • **
  • Posts: 153
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #4 on: June 26, 2014, 13:26:23 pm »
well, sorry for sounding dumb, but I did try to use HTML code "U+20B9" but it shows "¹" any suggestions?

rage76

  • Jr. Member
  • **
  • Posts: 153
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #5 on: July 05, 2014, 10:13:43 am »
anyone.....please help !!

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #6 on: July 07, 2014, 14:23:14 pm »
Copy currency symbol from any utf8 encoded page.

rage76

  • Jr. Member
  • **
  • Posts: 153
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #7 on: August 01, 2014, 08:51:05 am »
Dear Maxim

As I said earlier, I did try to use HTML code "U+20B9" but it shows "¹"

utf8 code is "e282b9"

Should I use this?

rage76

  • Jr. Member
  • **
  • Posts: 153
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #8 on: October 30, 2014, 13:10:32 pm »
Please help. I am unable to correct this. Need a proper solution / procedure.

rage76

  • Jr. Member
  • **
  • Posts: 153
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #9 on: February 10, 2015, 13:04:59 pm »
I have still not been able to find a solution to this. Is there no one who could help me?

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #10 on: February 12, 2015, 05:28:34 am »
Hi rage,

looks like tcpdf is not getting the rupie sign done. Did you check the font that tcpdf is using?

Maybe have a look at this site and go on from there:
http://www.tcpdf.org/fonts.php

Sorry, no time at the moment to find out more.
Stefan

PS. But on the other hand, you seem to have the same problem as Flipkart and others, so you are not really far behind recent technology. ;-)
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

rage76

  • Jr. Member
  • **
  • Posts: 153
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #11 on: February 21, 2015, 06:53:03 am »
You now what, after trying to replicate all the solutions given online, all I could reach to was a small box symbol from the earlier "?" which when I cut and paste elsewhere, shows the Indian Rupee symbol "₹". what else remains to be done....I am clueless !! Any suggestions?

godsgracetech

  • Beginner
  • *
  • Posts: 9
  • A beginner
  • Skype Name: godsgracetech
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #12 on: October 15, 2017, 07:47:13 am »
Hello,
I have been watching this post for solution since two months :-), but no response from anyone. Did anyone find the solution the for this issue ? We are able to display the "₹" rupee symbol on the website and emails, but not in the Invoice that we generate from VM administrator. It is showing as "?" when we generate invoice into PDF. I tried many suggestion that i found in this forum, but no solution.

Appreciate if any body can help us to fix this issue as soon as possible.

Thanks

rage76

  • Jr. Member
  • **
  • Posts: 153
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #13 on: October 21, 2017, 08:57:14 am »
I gave up on this and used a 3rd party invoicing solution to resolve this issue.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4067
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs
« Reply #14 on: October 21, 2017, 14:14:35 pm »
The solution is here http://forum.virtuemart.net/index.php?topic=138649.msg486503#msg486503.
I used this for a website having Arabic and hebrew language
You can use webfonts too and generate the files