'Spreadsheet Excel Writer - writeUrl() problem

I have to use PEAR extension "Spreadsheet_Excel_Writer" and I need to insert URLs into one of the columns, so I use this line in the loop:

$sheet->writeUrl($line, $colNumber, 'http://www.google.com', 'string');

$line is being changed through iterations. In the downloaded file I get something like this: "瑨灴⼺眯睷朮潯汧⹥潣m" instead of "http://www.google.com". Tried to use https, but in that case link will not be inserted at all. Who encountered this problem, could you help please?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source