You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2013-10-01 11:40:54

Kremkov
Member
Registered: 2012-06-06
Posts: 22

Cyrillic, PDF, GLPI 0.84.2

Good day or night dear friends. Tell me how to solve the problem with the Cyrillic alphabet in PDF reports? Version of GLPI 0.84.2, windows server

Thank you in advance for your cooperation

Offline

#2 2013-10-01 15:29:42

alishchytovych
Member
Registered: 2011-10-25
Posts: 5

Re: Cyrillic, PDF, GLPI 0.84.2

You need new fonts (Helvetica.afm), and patch files
1) class.pdf.php
  header("Content-Length: ".(((strtoupper(substr($_SERVER['OS'],0,3))=='WIN')?1:2)*strlen(ltrim($tmp))));
  //header("Content-Length: ".strlen(ltrim($tmp)));
2) search.class.php
Windows-1252 -> Windows-1251

Last edited by alishchytovych (2013-10-02 07:55:04)

Offline

#3 2013-10-02 07:51:53

Kremkov
Member
Registered: 2012-06-06
Posts: 22

Re: Cyrillic, PDF, GLPI 0.84.2

alishchytovych wrote:

You need new fonts (Helvetica.afm), and patch files
1) class.pdf.php
  header("Content-Length: ".(((strtoupper(substr($_SERVER['OS'],0,3))=='WIN')?1:2)*strlen(ltrim($tmp))));
  //header("Content-Length: ".strlen(ltrim($tmp)));
2) seach.class.php
Windows-1252 -> Windows-1251

Thanks for the sympathy, but I have not found Fail seach.class.php. And did not understand what needs to be changed and that the file class.pdf.php

Offline

Board footer

Powered by FluxBB