fix:encode type B