title: utf8 problem with swedish characters from command line
body: <p>I have a script that gets a string from the database, splits it into words and writes the words to the database. It works perfectly when i call the script via http (using apache web server). It also works to run it from a windows command line. However, when i try to run it from the command line (shell) in ubuntu all swedish chars ÅÄÖ is replaced with AAO in the database. Very strange. </p>
  
  <p>What is apache telling php that i need to tell it myself when running from command line?</p>