I assume you're using Windows in this case ? And the files you're
talking about are generated by the console ?

On Jul 21, 9:09 am, lyba <[email protected]> wrote:
> Hi,
>
> Cake bake (1.3.x recently tried 2.0.) generates  files as no utf-8
> files.
>
> To be precise they can be interpreted as utf-8 files but since they do
> not contain utf-8 character they in fact are pure ANSI encoded files.
>
> The result is that when I open any view file for editing and type
> utf-8 character in a text editor (I use Notepad++, but I guess it is
> similar for other editors) will save the file with original ANSI
> encoding. When displayed in browser all these characters are
> corrupted. I can convert file encoding to utf-8 just before the save
> and all works fine.
>
> Whenever I do a new cake instance I go through all default template
> files \cake\console\templates\default\classes and add a utf-8
> character as some kind of comment in these files. This ensures that
> all files generated by bake are utf-8 and I do not have to convert
> them individually.
>
> However, over months I've created several instances of cake and it
> always troubles me to go through all these changes. Recently I started
> with cake 2.0 and it is exactly the same.
>
> Does anyone know a better solution then modifying template file?
>
> Would it be worth to create a ticket for cake 2.0. to do the trick
> automatically for next versions?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to