If it's a letter substitution cipher and you have a large enough sample, the code's usually pretty easy to puzzle out. 'A' and 'I' come first, then the bevy of two letter words help you figure out a few more letters. Any regularly repeated three-character pattern is probably 'the.' Then you just rock out from there.