I want to create a text file in Presentation template with utf8 encoding. But it is not creating utf8 file. It always creates file with default ANSI format.
I tried following two methods
1) require TeamSite:

CRparser;
$string = TeamSite:

CRparser::utf8_normalize_string("iso-8859-1", $string);
2) use Encode;
$string = encode("utf8", decode("iso-8859-1", $string));
First method was working with TS 5.5. Whereas second method was working before installation of SP2. After SP2, none of the two methods are working. I also tried removing the encoding but that too does not work.
Please help.
Thanks and Regards,
Sagar Karani