Characters and the Equivalence of Codes

MacWilliams proved that two linear codes are equivalent up to monomial transformations if and only if there is a weight-preserving linear isomorphism between them. We present a new proof based on the linear independence of group characters. We also present a new proof of a theorem of Bonisoli characterizing constant weight codes.