Compile and init encodings