Converting the character set of text files
During the development of a project on a Windows-based development machine, the resulting file had to be converted before the SQL file could be imported on the database server. This came up because the web server displayed the characters fetched from the database incorrectly, since it was using the UTF8 character set. The content of the SQL file was then converted using the iconv application. Command used:
iconv -c --from-code CP1251 --to-code UTF8 bd_desenvolvimento.sql >bd_convertido.sqlThis conversion was done on Ubuntu 11.04 and the project was installed on an Ubuntu 10.04 LTS server.