I am using Text::CSV module to write the results of SQL query to a .csv file. Everything is fine but now I noticed that if data contains ASCII characters like ®, they are not formatted but displayed as 174. Whereas when the same data is displayed on browser, it converts 174 to ®. How do I ensure that proper formatting of data takes place in the csv file?