Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by zwon (Abbot)
on Nov 09, 2014 at 15:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1106617]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-24 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found