Converts ASCII values to character entities, including high ASCII and MS Word characters that can cause…