Tiago Matos

Scrap Book

0 notes

Ruby encoding:
usually, you do the following: 1. read external data, 2. force encoding to the assumed external encoding, (2.5 check validity, but that has a speed cost), 3. use #encode to convert it to internal encoding