I am working on a UK-based site - but we have customers all over the world, including Russia. However, when customers enter their address using the non-latin Russian / Cyrillic alphabet, there are missing characters on the PDF invoice. I expect it's something to do with UTF-8. Is there a way to show these missing Cyrillic / Russian characters?
-
sorry, I meant Cyrillic alphabet. I also need to know about Arabic and Chinese characters too.– Phil StewartCommented Oct 31, 2014 at 10:42
-
Maybe its just the font used in the PDF not supporting that characters?– Stefan GregoriCommented Oct 31, 2014 at 11:12
-
I'm using Arial. Does that support Cyrillic characters?– Phil StewartCommented Oct 31, 2014 at 13:17
-
according to ms that should work. so my clue was wrong :-/ microsoft.com/typography/fonts/font.aspx?FMID=1705– Stefan GregoriCommented Oct 31, 2014 at 13:22
-
I think I need change the output from UTF-8 to ISOxxxx-5 (whichever one does cyrillic characters). Not sure how though!– Phil StewartCommented Oct 31, 2014 at 13:26
2 Answers
A solution I implemented is the string transliteration.
We ported the nice transliteration extension from Drupal and made it work on Magento for PDF printing and logistics data exchange.
To transliterate strings means that characters are converted to US-ASCII.
That's a solution that may or may not suit your needs, because the data becomes different from the original.
If possible store and translate the contents of the email on the fly as you populate the pdf. This way you'll ensure a full translation is present in the file.
-
There isn't an email. The customer orders something from our website, and the details are correctly transferring into Magento. But when I go to print out the invoice, the cyrillic characters don't show. Commented Oct 31, 2014 at 13:18
-
are you getting a bunch of [][][][] or do the characters actually disappear? Commented Oct 31, 2014 at 13:27
-
They just disappear. The address should be: Нагорный проезд, д.6 Moscow, Москва, 117105 Russia And it appears like this: , .6 Moscow, , 117105 Russia Commented Oct 31, 2014 at 13:32
-
If the method you're using doesn't work with chinese or arabic it probably has trouble recognizing moonrunes. If this is the case, and you've tried different fonts i'd suggest a full scrap of your current methods. Commented Oct 31, 2014 at 19:30