Default encoding calculation
Default encoding calculation