Skip Menu |

This queue is for tickets about the Spreadsheet-WriteExcel CPAN distribution.

Maintainer(s)' notes

If you are reporting a bug in Spreadsheet::WriteExcel here are some pointers

1) State the issues as clearly and as concisely as possible. A simple program or Excel test file (see below) will often explain the issue better than a lot of text.

2) Provide information on your system, version of perl and module versions. The following program will generate everything that is required. Put this information in your bug report.

    #!/usr/bin/perl -w

    print "\n    Perl version   : $]";
    print "\n    OS name        : $^O";
    print "\n    Module versions: (not all are required)\n";

    my @modules = qw(
                      Spreadsheet::WriteExcel
                      Parse::RecDescent
                      File::Temp
                      OLE::Storage_Lite
                      IO::Stringy
                      Spreadsheet::ParseExcel
                      Scalar::Util
                      Unicode::Map
                    );

    for my $module (@modules) {
        my $version;
        eval "require $module";

        if (not $@) {
            $version = $module->VERSION;
            $version = '(unknown)' if not defined $version;
        }
        else {
            $version = '(not installed)';
        }

        printf "%21s%-24s\t%s\n", "", $module, $version;
    }

    __END__

3) Upgrade to the latest version of Spreadsheet::WriteExcel (or at least test on a system with an upgraded version). The issue you are reporting may already have been fixed.

4) Create a small but complete example program that demonstrates your problem. The program should be as small as possible. At the same time it should be a complete program that generates an Excel file. If the Spreadsheet::WriteExcel section is part of a much larger program then simplify it down to the essentials. Simulate any DB reads with an array.

5) Say if you tested with Excel, OpenOffice, Gnumeric or something else. Say which version of that application you used.

6) If you are submitting a patch you should check with the author whether the issue has already been patched or if a fix is in the works. Patches should be accompanied by test cases.

Asking a question

If you would like to ask a more general question there is the Spreadsheet::WriteExcel Google Group.

Report information
The Basics
Id: 11700
Status: resolved
Priority: 0/
Queue: Spreadsheet-WriteExcel

People
Owner: jmcnamara [...] cpan.org
Requestors: divanov [...] creditreform.bg
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.11
Fixed in: (no value)



Subject: Non-ascii sheet names and perl's utf8
Hi, I've had problems using perl's internal utf8-encoded strings in add_worksheet. Example follows: Show quoted text
------ the file must be encoded in utf8 ---------- use utf8; use Spreadsheet::WriteExcel; my $wb = Spreadsheet::WriteExcel->new('/tmp/test.xls'); my $ws = $wb->add_worksheet('some non-ascii name'); $wb->close(); ---------------- cut ---------------- Now try to open /tmp/test.xls - both Gnumeric and openoffice.org reported invalid format to me. The patch attached adds support for newer perls' native utf8 encoding, similar to what is done in Worksheet->write_string(). Thanks for considering and many thanks for writing Spreadsheet::WriteExcel! dam
Download patch
application/octet-stream 912b

Message body not shown because it is not plain text.

[guest - Tue Mar 1 09:58:30 2005]: Show quoted text
> I've had problems using perl's internal utf8-encoded strings in > add_worksheet.
This feature was scheduled for the next release. I will post a patch later today and hopefully integrate it into a release in the next few days. Also, in relation to your post on the Debian list about Spreadsheet::ParseExcel have a look at the following: http://www.cpanforum.com/threads/151 John. --
From: divanov [...] creditreform.bg
John, Many thanks for your prompt response. I've tried to reply to RT via email, but my email never appeared here, so here we go again... |>I've had problems using perl's internal utf8-encoded strings in |>add_worksheet. | | This feature was scheduled for the next release. I will post a patch | later today and hopefully integrate it into a release in the next few days. This is great! I'll get my ski vacation next ten days, so access to my mailbox will be sparse. If the next release is a matter of days, then there is no point of patching the Debian package, I guess. | Also, in relation to your post on the Debian list about | Spreadsheet::ParseExcel have a look at the following: | | http://www.cpanforum.com/threads/151 I've tried it and it works like a charm. dmpEx.pl (from examples) over a .xls created with gnumeric, using all sorts of bulgarian (cyrillic) letters both in sheet names and cells dumps everithing correct. The only complain is about "Wide character in print at dmpEx.pl line 20.", but I guess this is quite normal, since the STDOUT is not flagged with binmode STDOUT, ':utf8' Do you expect to make a release, integrating this change, or shall I request that the debian package be patched? The latter may be a good idea if you need broader testing. Thanks again, dam
Hi, It took me a little longer than anticpated to write and test this feature but here is a pre-release version if you care to try it: http://homepage.eircom.net/~jmcnamara/perl/Spreadsheet-WriteExcel-2.11.01.tar.gz You can now use utf8 for: * Worksheet names * Headers and footers * Font names * Number formats But not formulas (yet). Let me know if you have any problems. John. --
[JMCNAMARA - Mon Mar 21 11:23:08 2005]: Show quoted text
> It took me a little longer than anticpated to write and test this > feature but here is a pre-release version if you care to try it:
Before I got a chance to try it, the Debian maintainer, Gunnar Wolf, packaget it, so I've got it from the regular Debian update. So far everithing works just fine. Many thanks for your efforts. dam
[guest - Thu Apr 7 09:59:53 2005]: Show quoted text
> Before I got a chance to try it, the Debian maintainer, Gunnar Wolf, > packaget it, so I've got it from the regular Debian update.
:-) I must add Gunnar to the acknowledgements. Show quoted text
> > So far everithing works just fine. >
Good. If you are interested you could create an example in Bulgarian for the examples directory of the distro. John. --