Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Strange Characters - Different Encoding?

by ioannis (Vicar)
on Nov 05, 2005 at 09:47 UTC ( #505959=note: print w/ replies, xml ) Need Help??


in reply to Strange Characters - Different Encoding?

The page from the gwinnettdailypost site was in 8859-1 (Latin1) encoding -- good news, because it should be a simpler problem to investigate. First, assuming you are on Unix, ensure you are running perl from a Latin-1 environment.

  • % export LC_ALL=en_US.iso88591
Then run your perl program.

If the above was not sufficient to fix the problem, check if the db server is setup for latin-1 -- or create a new database that can handle Latin-1 .

Here are the commands if you are using Postgresql:

  • SHOW server_encoding ;
  • CREATE DATABASE myname WITH encoding = 'LATIN1';


Comment on Re: Strange Characters - Different Encoding?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2015-07-29 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls