ios txt decode and display using UniversalDetector, old code, sort save