Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: SOLVED: Storing UTF-8 data into database from scraped web page

by Anonymous Monk
on Jun 15, 2018 at 13:14 UTC ( #1216708=note: print w/replies, xml ) Need Help??


in reply to SOLVED: Storing UTF-8 data into database from scraped web page

Another trick that can help in diagnosing problems like these is to write a script that dumps the hexadecimal bytes. There are just too many places where encoding can be attempted by different participating pieces of software all of which are trying their best to be helpful. I have even been known to go to the actual disk-files where the information is stored and display some of the pages with the hexdump command. (Likewise the incoming data from the site: "wget" it with all language-features turned off and hexdump that file. Determine what are the bytes that are coming in from the site and what are the bytes that are getting written to disk. From this you can piece together where conversion is happening and where you want it to be happening.
  • Comment on Re: SOLVED: Storing UTF-8 data into database from scraped web page

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2019-07-21 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (7 votes). Check out past polls.

    Notices?