16. A method for encrypting data in a database system, comprising: receiving requests to store the data in the database system; scanning the data for each of the requests for different language characters; identifying a number of bits used by different encoding schemes for encoding the language characters in the data; for each of the requests, selecting one of the encoding schemes encoding the data in a fewest number of bits; using the selected one from the different encoding schemes to encode the data into byte arrays; encrypting the encoded byte arrays into encrypted data and assigning headers to the encrypted data to identify the encoding scheme used to encode the data and to decode the encoded data; and storing the headers and the encrypted data in the database system.
16. A method for encrypting data in a database system, comprising: receiving requests to store the data in the database system; scanning the data for each of the requests for different language characters; identifying a number of bits used by different encoding schemes for encoding the language characters in the data; for each of the requests, selecting one of the encoding schemes encoding the data in a fewest number of bits; using the selected one from the different encoding schemes to encode the data into byte arrays; encrypting the encoded byte arrays into encrypted data and assigning headers to the encrypted data to identify the encoding scheme used to encode the data and to decode the encoded data; and storing the headers and the encrypted data in the database system. 18. The method of claim 16 further comprising: identifying the number of bits used by a first one of the encoding schemes for encoding the data, the data including the language characters for both a first language and a second language; identifying the number of bits used by a second one of the encoding schemes for encoding the data; and selecting the first one of the encoding schemes or the second one of the encoding schemes using a fewest number of bits to encode the data.