After writing an article about character encoding, I had been gradually developing the same attendance management script.