Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to print(encode) japanese characters in HTML using perl crawler

by zwon (Abbot)
on Nov 09, 2014 at 15:26 UTC ( #1106617=note: print w/replies, xml ) Need Help??


in reply to How to print(encode) japanese characters in HTML using perl crawler

Works for me. I guess the problem is that the tool you're using to see the output file doesn't know it is in UTF-8.
  • Comment on Re: How to print(encode) japanese characters in HTML using perl crawler

Replies are listed 'Best First'.
Re^2: How to print(encode) japanese characters in HTML using perl crawler
by myfrndjk (Sexton) on Nov 09, 2014 at 16:23 UTC

    Hi I tried to open with both firefox and chrome in both i am getting the junk values. Is there any other reason for this

      Yes. Firefox isn't recognizing the proper character encoding. If you go to View -> Character Encoding and select "Unicode", you should see the proper characters.

      Note that even though you've named your output files with the .html extension, it's not actually an html file, it's just a raw unicode text file. As such it lacks any of the metadata that comes along with web pages to help browsers render them correctly.

        Hi, Thanks for your answer.It works fine when i changed the character encoding.Thanks again

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2020-05-31 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (174 votes). Check out past polls.

    Notices?