 The town charter was granted in 1778.According to the 2010 census, the town had 24,959 inhabitants with 2.2% Czech and 0.4% Roma.The religious make-up was 82.97% Roman Catholics and 0.36% Lutherans; most of others stated no religious affiliation.