2013-01-21 - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding)
Header Data
From: Tim White <ti***8@gmail.com>
Message Hash: 18259e3eb83183d4bb4d93a7f46f234dee93f0cd9bb3bc5f1c1e132de942e8d1
Message ID: <50FE2F32.6010505@gmail.com>
Reply To: <CAPz6xh6h8N9xCVTxprVo83wdWm6te9Dt5+5h71YG5RcUaf9xWA@mail.gmail.com>
UTC Datetime: 2013-01-21 23:18:26 UTC
Raw Date: Tue, 22 Jan 2013 16:18:26 +1000
Raw message
Hey Tomas.
It seems that the font we use makes a difference.
Change line 59 of the
/usr/share/grase/www/radmin/classes/PDFLabels.class.php file to be as below
private $Font_Name = 'freesans';
You'll also need to get the freesans font files. I'll include them in
the next release. However if you download the tcpdf library and copy the
whole fonts directory to /usr/share/grase/tcpdf/fonts you'll have the
needed files.
Since writing the PDF code, I've actually stopped using it. I was
planning on making it really customisable, but no longer have a need. I
now export the batches with the CSV export, then have a funky script
that edits a SVG image and exports it for me. The kind of vouchers I now
print are too complicated for a PHP PDF library, hence the scripted SVG
images.
Tim
On 13/01/13 05:26, Tomas213 wrote:
> Hello.
> I use el_GR for my language code set.
> Everything else works just fine in the admin panel, all greek language
> works fine.
> The problem is only at the batch print.
> I sent u a pdf in your mail.
> Have a look at it and tell me.
>
> Thomas
>
> On Fri, Jan 11, 2013 at 11:38 PM, Tim White <ti***8@gmail.com> wrote:
>> On 12/01/13 06:57, Tim White wrote:
>>> On 05/01/13 23:11, Tomas213 wrote:
>>>> Hello everyone.
>>>> Have a great year!
>>>>
>>>>
>>>>
>>>> Today i tried to print a new batch, but the username and password
>>>> fields instead of beeing Greek, is uses "?????????????"
>>>> I use the Greek locale.
>>>> I think there might be a problem with the character encoding in the
>>>> pdf creation.
>>>> Are u using UTF or ISO?
>>> I'll have to dig around and verify. It should only be creating
>>> usernames with ASCII chars, so that's a bit odd. Can you send me an
>>> example PDF and also what the user names and passwords should be.
>>> (When you create the batch initially, it should list them all in a
>>> table, so just create a new batch of about 5).
>> Also, what is your language code set to? i.e. what is the Greek locale
>> you are using? ??_GR?
>>
>> Tim
>>
>> ------------------------------------------------------------------------------
>> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
>> much more. Get web development skills now with LearnDevNow -
>> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
>> SALE $99.99 this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122812
>> _______________________________________________
>> Grase-hotspot mailing list
>> Gr***t@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/grase-hotspot
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912
> _______________________________________________
> Grase-hotspot mailing list
> Gr***t@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/grase-hotspot
Thread
-
Return to January 2013
- Return to “Thomas Stefanidis <th***s@gmail.com>”
- Return to “Tim White <ti***8@gmail.com>”
-
Return to “Tomas213 <to***3@gmail.com>”
- 2013-01-05 (Sat, 05 Jan 2013 15:11:39 +0200) - [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tomas213 <to***3@gmail.com>
- 2013-01-11 (Sat, 12 Jan 2013 06:57:27 +1000) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tim White <ti***8@gmail.com>
- 2013-01-11 (Sat, 12 Jan 2013 07:38:35 +1000) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tim White <ti***8@gmail.com>
- 2013-01-12 (Sat, 12 Jan 2013 21:26:12 +0200) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tomas213 <to***3@gmail.com>
- 2013-01-21 (Tue, 22 Jan 2013 16:18:26 +1000) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tim White <ti***8@gmail.com>
- 2013-01-25 (Fri, 25 Jan 2013 14:30:39 +0200) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Thomas Stefanidis <th***s@gmail.com>
- 2013-01-25 (Fri, 25 Jan 2013 14:31:22 +0200) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tomas213 <to***3@gmail.com>
- 2013-01-25 (Sat, 26 Jan 2013 10:23:49 +1000) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tim White <ti***8@gmail.com>
- 2013-01-25 (Fri, 25 Jan 2013 14:30:39 +0200) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Thomas Stefanidis <th***s@gmail.com>
- 2013-01-21 (Tue, 22 Jan 2013 16:18:26 +1000) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tim White <ti***8@gmail.com>
- 2013-01-12 (Sat, 12 Jan 2013 21:26:12 +0200) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tomas213 <to***3@gmail.com>
- 2013-01-11 (Sat, 12 Jan 2013 07:38:35 +1000) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tim White <ti***8@gmail.com>
- 2013-01-11 (Sat, 12 Jan 2013 06:57:27 +1000) - Re: [GRASE-Hotspot] New batch ticket printing problem (character encoding) - Tim White <ti***8@gmail.com>