Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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.

Replies are listed 'Best First'.
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
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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://789256]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-29 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found