Re: ANNOUNCE: Text::CSV_XS 0.32
- From: "H.Merijn" <h.merijn@xxxxxxxxx>
- Date: Fri, 26 Oct 2007 21:13:05 +0200
On Thu, 25 Oct 2007 06:59:01 +0200, Petr Vileta <stoupa@xxxxxxxxxxxxx> wrote:
H.Merijn Brand wrote:The following report has been written by the PAUSE namespace indexer.
Please contact modules@xxxxxxxx if there are any open questions.
Id: mldistwatch 925 2007-09-16 15:41:11Z k
User: HMBRAND (H.Merijn Brand)
Distribution file: Text-CSV_XS-0.32.tgz
Well, I'm pleased to see you here :-)
I've been here before, but I prefer private mail :)
I tried to use your module Text::CSV_XS for storing some data to CSV file but without success. The problem is national characters. When I tried $csv->combine(('abc',áíá','def') I got "abc\n" only.
As both Mumia and the docs make (now) VERY clear, you need the binary
flag. This version has made that even more clear. You *do* read the
docs, right?
--8<---
Important Note: The default behavior is to only accept ascii
characters. This means that fields can not contain newlines. If your
data contains newlines embedded in fields, or characters above 0x7e
(tilde), or binary data, you *must* set "binary => 1" in the call to
"new ()". To cover the widest range of parsing options, you will
always want to set binary.
-->8---
Your module fail on first field where something greather then \x7f is.
My module doesn't fail here. It is the default, documented, and correct
behaviour :)
But no error, no warning.
Is this a bug or feature?
Feature, or documented behaviour. Whatever you prefer.
In the distribution, check out t/50_utf8.t to see how you should be
dealing with non-ASCII characters. Maybe I can put that example in
the documentation, as I keep refering to that file.
.
- References:
- ANNOUNCE: Text::CSV_XS 0.32
- From: H.Merijn Brand
- Re: ANNOUNCE: Text::CSV_XS 0.32
- From: Petr Vileta
- ANNOUNCE: Text::CSV_XS 0.32
- Prev by Date: Re: ANNOUNCE: Text::CSV_XS 0.32
- Next by Date: Re: ANNOUNCE: Text::CSV_XS 0.32
- Previous by thread: Re: ANNOUNCE: Text::CSV_XS 0.32
- Next by thread: mod_perl 2.0.3 and apache 2.0.x and 2.2.x^
- Index(es):
Relevant Pages
|
|