Re: ANNOUNCE: Text::CSV_XS 0.32



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.
.



Relevant Pages

  • Re: Data logger using HP48GX
    ... this Computer Serial Temperature Meter & Data Logger, the output data is a continuous ... Use BUFLEN to see how many characters are in the 48 buffer, ... then DROP to get rid of the "result" flag in Level 1, ...
    (comp.sys.hp48)
  • Re: GetCharacterPlacement() problems
    ... > incorrectly and returning a small number of characters able to be fit into the available space when there's space for plenty more. ... GetCharaterPlacement() twice, the first with the GCP_MAXEXTENT flag only with FLI_GLYPHS ... and GCP_USEKERNING masked off) to get the number of characters of the string that could be displayed on the line. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Writing a byte to a specific location in a file
    ... what kind of file it is, then encode the characters according to this. ... The preamble for an UTF8 file is the three bytes EF BB BF. ... The first character is a flag indicating the file has changed and the 2 - ... Below is a sub that I am using to try and update the first flag. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Line Method Explanation?
    ... > just the Line method's syntax in comparison to the standard syntax of all ... > a) Where is the Required flag? ... > BF tells the line method you want a Filled In rectangle/Box). ... > characters are either a variable, a constant, or you put quotation marks ...
    (microsoft.public.access.reports)
  • Re: guide to stress free editing
    ... actually add up to an unambiguouis explanation. ... like introducing three characters by name - my mind will go 'who are ... Sometimes I flag something I think I'm going to need later an idea,an ... object, a possible plot thread, a character. ...
    (rec.arts.sf.composition)