Smarty and UTF8 encoded files

From: Date: Sat, 24 Jul 2004 15:16:09 +0000
Subject: Smarty and UTF8 encoded files
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11626@lists.php.net to get a copy of this message
Hi all, I have a strange problem with smarty and UTF8 encoded files on Win2000 maschine. I've searched archives and posted to smarty forum on phpinsider.com but no one replyed yet :( Here's the problem: my template is in UTF8 encoded file and when smarty compiles it, it adds some characters(see below) on the begining of first line and that is breaking my design. I'm runing PHP 4.3.0 and Smarty 2.6.3. Is Smarty even suposed to work with UTF8 files, and is there a solution to this problem? If I convert the file to any one-byte encoding then it works OK, but that's not the solution really ;) Thanks first 16 bytes of my template file: FF FE 3C 00 21 00 44 00 4F 00 43 00 54 00 59 00 ; ÿþ<.!.D.O.C.T.Y. same line in compiled template file: FF FE FF FE 3C 00 21 00 44 00 4F 00 43 00 54 00 ; ÿþÿþ<.!.D.O.C.T. first 16 bytes of what browser recives: FF FE 09 00 FF FE 3C 00 21 00 44 00 4F 00 43 00 ; ÿþ..ÿþ<.!.D.O.C.

« previous php.smarty.general (#11626) next »