Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^3: Remove unicode "whitespace"

by Khen1950fx (Canon)
on Feb 28, 2013 at 16:11 UTC ( #1021076=note: print w/replies, xml ) Need Help??

in reply to Re^2: Remove unicode "whitespace"
in thread Remove unicode "whitespace"

Give URI::Encode a try.
#!usr/bin/perl -l use strict; use warnings; use URI::Encode qw(uri_decode); my $encoded = ' /wiki/File:Atelerix_algirus.jpg%E2%80%8E'; print uri_decode($encoded);

Replies are listed 'Best First'.
Re^4: Remove unicode "whitespace"
by HYanWong (Acolyte) on Mar 01, 2013 at 01:44 UTC

    Yes, I've done that. It converts the %E2%80%8E string to the unicode LRM character, which isn't printed, but is still embedded in the string, causing problems when accessing the URL again. Thanks, though.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2016-10-23 17:50 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.