Thanks for all the help. I just want to mention that I don't own the server. The site is being hosted by the company SiteGround (which I think is in the USA). The data file is also located on that same server. My Perl script is able to read the word "número" (from that data file) and store it into its variable $mes. Then, the Perl script prints that variable $mes to my browser and my browser displays the correct word. I tried this on my Win7 computer running Google Chrome, and also on my son's iPad using Safari. Perhaps, Perl stores n%C3%BAmero into that variable which browsers can resolve as you mentioned, but Perl is not able to resolve. The strange thing is that my local Perl (running through Apache) is able to resolve this. I'm fairly new to Perl, I didn't understand the ord test. I don't have access to a perl prompt (command prompt) if that's what you meant. I did add this code to my website, not sure if it's what you were hoping to see.
for $i ( 0 .. 23 ) { $mfr=$info[$i]{'MFR'}; $mes=$info[$i]{'MES'}; my @array = split //,$mes; @array = map(ord, @array); my @chars = map(chr, @array); my @array2 = unpack("C*", $mes); my @chars2 = map(chr, @array2); $c="$dpmg/$mes.$epng"; if (-e $c) { $c2=$c; } else { $c2="$dpmg/_x2.png"; } $d="$dpmg/$mes.$epng"; print "<DIV>$mfr</DIV> <DIV>$mes</DIV> <DIV>$c</DIV> <IMG src='$c2'> <DIV>$d</DIV> <IMG src='$d'> <DIV>@array</DIV> <DIV>@chars</DIV> <DIV>@array2</DIV> <DIV>@chars2</DIV> <BR>\n"; }
In reply to Re^4: -e not working Perl 5.008008
by GLJSD
in thread -e not working Perl 5.008008
by GLJSD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |