In order to make it easier to read and throw exceptions, the actual development uses try catch finally to ensure that the resources are closed.
character set
ASCII: American Standard Information Interchange Code, which can be represented by 7 bits of one byte
ISO8859-1: Latin code table, European code table, represented by 8 bits of one byte
GB2313: China's Chinese encoding table, up to two bytes to encode all characters
GBK: China's Chinese encoding table has been upgraded, incorporating more Chinese text symbols, up to two bytes of encoding
Unicode: The international standard encoding, which combines all the characters currently used by humans, assigns a unique character code to each character, and all characters are represented by two bytes
UTF-8: variable length encoding method, 1-4 bytes can be used to represent a character