How to confirm the character encoding