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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.