encoding pragma aborts script

From: Rh (rh62121_at_yahoo.com)
Date: 01/21/05


To: dbi-users@perl.org
Date: Fri, 21 Jan 2005 17:04:16 +0100

Hi,
I have an app which connects via DBI:DBD:CSV to a flat file.
When I include pragma use encoding, the app aborts (message from OS and the
script is killed).
I found out that script is aborted during execute method of DBI.
The DB file has only ASCII characters. I use pragma encoding to display
latin extended characters in Tk widget.
Does anyone know what's the cause?
Many thanks.
Radek H.



Relevant Pages

  • Re: encoding pragma aborts script
    ... >When I include pragma use encoding, the app aborts (message from OS and the ... >I found out that script is aborted during execute method of DBI. ... I use pragma encoding to display ...
    (perl.dbi.users)
  • Re: F is evil (was: XML::LibXML UTF-8 toString() -vs- nodeValue())
    ... I'm going nuts when I see "use encoding". ... debatable if this is even a programming language - is it ... A script is the complete program text, ... That doesn't fix the endianness, ...
    (comp.lang.perl.misc)
  • Re: [Patch] Support UTF-8 scripts
    ... For a script, the shell does not care about the encoding ... the interpreter *does* care about the encoding. ... UTF-8, meaning that non-ASCII can be used in string literals, ... > signature, so introducing a signature for UTF-8 does not win anything. ...
    (Linux-Kernel)
  • Re: invalid byte sequence in US-ASCII (ArgumentError)
    ... Result in Ruby 1.8: ... the script on Windows, ... valid in that locale, and check no exception is raised. ... Using the locale encoding does the right thing here. ...
    (comp.lang.ruby)
  • Re: Perfecting index.pl some more!
    ... avoid \A and \z altogether. ... A flat file for a counter might in fact be a better idea than iterating ... > How i can i shorter it, perfect it some more by dividing into subs? ... For a script of that length, ...
    (comp.lang.perl.misc)