Ruby: Convert Strings from UTF-8 to LATIN1 (ISO 8859-1) with Iconv
Posted: April 30th, 2009 | Author: vid | Filed under: Development | Tags: ruby | No Comments »I used VPIM to create VCards from employees in my database which stores the employee’s data UTF-8 encoded. Then I wanted to give the user the possibility to download them. And of course half of the employees’ names were corrupted because I didn’t convert them to LATIN1 (ISO 8859-1). so here’s what i came up with:
Read the rest of this entry »
Recent Comments