He may well have been just remanded in custody awaiting trial.
Or you could contact Hampshire Records Office, Winchester they hold some prison and trial records.
They may also hold records of newspapers for the period that may well have information of trials.
If they cannot help could he have been an inmate in the Workhouse or maybe held in a Military Prison at the local barracks/garrison.