CakePHP set XML view encoding to UCS2



I need to set the encoding of my XML view to UCS2. I have tried to add the following to the view:



<?xml version="1.0" encoding="UCS-2"?>


and



<?php header('Content-type: text/xml; charset=UCS-2'); ?>


But each time when I open the xml view in the browser, save it to my desktop and open it with Notepad++ to check the file encoding it is set to UTF-8 without BOM.


I would really appreciate any suggestions on how to set the encoding for the specific XML view. TIA


No comments:

Post a Comment