Hi Perl Monks,
I have ran into this issue and according to past threads, I am supposed to tell Perl to output in UTF-8. I added the following to my code:
open(OUT,">out.html") || die("Cannot Open File");
binmode(OUT, ":utf8");
The error has gone away but there are weird characters that are still showing up like this when I print it out:
Upromise – The way to save for college
and
Client Server Security for Your Small Business –
I am using SOAP::Lite to obtain html links and the symbols do not seem to get encoded/decoded correctly when I obtain them. The code I use to obtain them is something like this:
Update: I updated the code I used to obtain the information.
open(OUT,">out.html") || die("Cannot Open File");
binmode(OUT, ":utf8");
my $service = SOAP::Lite->service('http://www.url.com/file.wsdl');
my $arguments = "my_id";
my $result = $service->search($my_arguments);
my $url = $link->{linkCodeHTML};
print OUT $url . "<br>";
I'm not exactly sure what it is supposed to like since it looks like that when I print it out. I assume they are trademarks of some sort.
Any suggestions would be greatly appreciated...
>
Thanks,
Perl newb
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.