Language encoding for English and Brazilian Portuguese