Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Encode fails to install on Win32 5.6

by ikegami (Patriarch)
on Aug 17, 2009 at 19:28 UTC ( [id://789256] : note . print w/replies, xml ) Need Help??


in reply to Encode fails to install on Win32 5.6

I thought support for non-ASCII characters was only added in 5.8, so decoding a string it next to impossible in 5.6. Changing the encoding of a string is possible, of course. Text::Iconv can do that, but since it relies on an external library, it might be tricky to install in Windows.
  • Comment on Re: Encode fails to install on Win32 5.6

Replies are listed 'Best First'.
Re^2: Encode fails to install on Win32 5.6
by syphilis (Archbishop) on Aug 18, 2009 at 01:13 UTC
    Text::Iconv can do that, but since it relies on an external library, it might be tricky to install in Windows.

    There's a ppm for Text-Iconv-1.2 available for 5.6 at the uwinnipeg rep:
    ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Text-Iconv.ppd
    Cheers,
    Rob
Re^2: Encode fails to install on Win32 5.6
by belg4mit (Prior) on Aug 17, 2009 at 19:29 UTC
    No, it was added in 5.6.0, and remained in various states of broken until 5.8 perldelta56

    --
    In Bob We Trust, All Others Bring Data.

      It had the UTF8 flag? Ah ok. My Windows machine (which has 5.6) is down at the moment, so I couldn't test. It's been a long time since I touched 5.6

      Update: Now that it's back up,

      >c:\progs\perl561\bin\perl -MDevel::Peek -wle"$x=chr(0x2660); print le +ngth $x; Dump $x" 1 SV = PV(0x183eb18) at 0x1832a0c REFCNT = 1 FLAGS = (POK,pPOK,UTF8) PV = 0x182013c "\342\231\240"\0 CUR = 3 LEN = 4