Discussion:
Structures_Datagrid XLS Renderer encoding problem
Patrick Paul
2006-08-07 12:52:05 UTC
Permalink
Hello everyone,

I have been attempting to use Structures_Datagrid to output to an XLS
spreadsheet but I get an error :

"Fatal error: Call to undefined method
Spreadsheet_Excel_Writer_Worksheet::setInputEncoding() in
pear/Structures/DataGrid/Renderer/XLS.php on line 213"

I have installed iconv but that doesn't resolve the problem. Am I doing
something wrong ? When I comment out line 213 mentioned above I get a
spreadsheet (but with which encoding ?).

Regards,

Patrick Paul
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Patrick Paul
2006-08-07 13:19:15 UTC
Permalink
pear upgrade -f Spreadsheet_Excel_Writer
WARNING: failed to download pear.php.net/Spreadsheet_Excel_Writer within
preferred state "stable", will instead download version 0.9.0, stability
"beta"
Did not download dependencies: pear/OLE, use --alldeps or --onlyreqdeps
to download automatically
downloading Spreadsheet_Excel_Writer-0.9.0.tgz ...
Starting to download Spreadsheet_Excel_Writer-0.9.0.tgz (55,541 bytes)
.............done: 55,541 bytes
XML error: not well-formed (invalid token) at line 64
Download of "pear/Spreadsheet_Excel_Writer" succeeded, but it is not a
valid package archive
Error: cannot download "pear/Spreadsheet_Excel_Writer"

I don' rearlly know what I'm supposed to do with that.

Thanks for your help,

Patrick Paul
Hi,
Post by Patrick Paul
"Fatal error: Call to undefined method
Spreadsheet_Excel_Writer_Worksheet::setInputEncoding() in
pear/Structures/DataGrid/Renderer/XLS.php on line 213"
You need to upgrade to Spreadsheet_Excel_Writer 0.9
Regards,
--
og
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Olivier Guilyardi
2006-08-07 14:28:48 UTC
Permalink
Post by Patrick Paul
Starting to download Spreadsheet_Excel_Writer-0.9.0.tgz (55,541 bytes)
.............done: 55,541 bytes
XML error: not well-formed (invalid token) at line 64
Hum, well, I don't have this problem here but there appear to be an ISO-8859-1
encoded "ö" character in package.xml at line 64.

The XML encoding is set to ISO-8889-1 so this is all right. But for an obscure
reason it does not get parsed properly on your system.

Please upgrade pear with : pear upgrade -o pear

Then try reinstalling Spreadsheet_Excel_Writer
Does it solve your problem?

--
og
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Patrick Paul
2006-08-07 14:35:11 UTC
Permalink
Thank you very much for taking the time to help me with this issue.

pear upgrade -o pear
Skipping package "pear/PEAR", already installed as version 1.4.10
No valid packages found
upgrade failed

Indeed this parsing problem is strange. It is not the first time I have
had this issue with a PEAR package.

Regards,

Patrick Paul
Post by Olivier Guilyardi
Post by Patrick Paul
Starting to download Spreadsheet_Excel_Writer-0.9.0.tgz (55,541 bytes)
.............done: 55,541 bytes
XML error: not well-formed (invalid token) at line 64
Hum, well, I don't have this problem here but there appear to be an
ISO-8859-1 encoded "ö" character in package.xml at line 64.
The XML encoding is set to ISO-8889-1 so this is all right. But for an
obscure reason it does not get parsed properly on your system.
Please upgrade pear with : pear upgrade -o pear
Then try reinstalling Spreadsheet_Excel_Writer
Does it solve your problem?
--
og
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Pierre
2006-08-07 15:05:10 UTC
Permalink
Post by Patrick Paul
Thank you very much for taking the time to help me with this issue.
pear upgrade -o pear
Skipping package "pear/PEAR", already installed as version 1.4.10
No valid packages found
upgrade failed
Indeed this parsing problem is strange. It is not the first time I have
had this issue with a PEAR package.
How did you install pear itself? Do you have many versions installed?

--Pierre
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Patrick Paul
2006-08-07 17:33:40 UTC
Permalink
Post by Pierre
Post by Patrick Paul
Thank you very much for taking the time to help me with this issue.
pear upgrade -o pear
Skipping package "pear/PEAR", already installed as version 1.4.10
No valid packages found
upgrade failed
Indeed this parsing problem is strange. It is not the first time I have
had this issue with a PEAR package.
How did you install pear itself? Do you have many versions installed?
Pear was originally installed with RPMs. Then I upgraded pear from the
command line. "pear upgrade pear".

As far as I know I have only one pear installation on the system.
Post by Pierre
--Pierre
Thanks for your help,

Patrick Paul
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Olivier Guilyardi
2006-08-07 15:13:12 UTC
Permalink
Patrick, please answer in the body of the mail, not on the top.
Post by Olivier Guilyardi
Post by Olivier Guilyardi
Post by Patrick Paul
Starting to download Spreadsheet_Excel_Writer-0.9.0.tgz (55,541 bytes)
.............done: 55,541 bytes
XML error: not well-formed (invalid token) at line 64
Hum, well, I don't have this problem here but there appear to be an
ISO-8859-1 encoded "ö" character in package.xml at line 64.
The XML encoding is set to ISO-8889-1 so this is all right. But for an
obscure reason it does not get parsed properly on your system.
Please upgrade pear with : pear upgrade -o pear
pear upgrade -o pear
Skipping package "pear/PEAR", already installed as version 1.4.10
No valid packages found
upgrade failed
Indeed this parsing problem is strange. It is not the first time I have
had this issue with a PEAR package.
I can properly parse this package.xml file with both PHP 4.4.2 and PHP 5.1.4
using pear 1.4.10.

What version of php are you using?

--
og
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Patrick Paul
2006-08-07 17:41:46 UTC
Permalink
Post by Olivier Guilyardi
Patrick, please answer in the body of the mail, not on the top.
Thanks for the tip.
Post by Olivier Guilyardi
Post by Olivier Guilyardi
Post by Olivier Guilyardi
Post by Patrick Paul
Starting to download Spreadsheet_Excel_Writer-0.9.0.tgz (55,541 bytes)
.............done: 55,541 bytes
XML error: not well-formed (invalid token) at line 64
Hum, well, I don't have this problem here but there appear to be an
ISO-8859-1 encoded "ö" character in package.xml at line 64.
The XML encoding is set to ISO-8889-1 so this is all right. But for
an obscure reason it does not get parsed properly on your system.
Please upgrade pear with : pear upgrade -o pear
pear upgrade -o pear
Skipping package "pear/PEAR", already installed as version 1.4.10
No valid packages found
upgrade failed
Indeed this parsing problem is strange. It is not the first time I
have had this issue with a PEAR package.
I can properly parse this package.xml file with both PHP 4.4.2 and PHP
5.1.4 using pear 1.4.10.
What version of php are you using?
I am using PHP Version 5.0.4. Do you think that could be the reason why
its not working ?
Post by Olivier Guilyardi
--
og
Patrick Paul
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Olivier Guilyardi
2006-08-07 13:06:39 UTC
Permalink
Hi,
Post by Patrick Paul
"Fatal error: Call to undefined method
Spreadsheet_Excel_Writer_Worksheet::setInputEncoding() in
pear/Structures/DataGrid/Renderer/XLS.php on line 213"
You need to upgrade to Spreadsheet_Excel_Writer 0.9

Regards,

--
og
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...