Re: CakePHP files in utf-8 without bom?

2011-03-30 Thread euromark
As I said before, the whole cake project is completely UTF8
keep my first post in mind and you will be fine. there is no need for
any more discussion on this topic.


RE:
Yeah. But i need to translate the app in different languages not only
english ^^

So it's enough to convert these .po files to utf8?

But what's about sending mails etc. over controllers or models
containing utf8 characters? won't they fail in the mail?

Wouldn't it be easier to just use utf8 in all files by the cake
foundation directly? Even though every one should use utf8 because it
rules ^^ ASCII or better ISO for some languages. UTF8 works always...

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP files in utf-8 without bom?

2011-03-30 Thread func0der
Yeah i was just wondering because notepad++ showed me ANSII and the
lanuage file i baked with the console. i put an ü in it and it gave
me a ? in the browser view.

On Mar 30, 1:13 am, Ryan Schmidt google-2...@ryandesign.com wrote:
 On Mar 29, 2011, at 18:09, Ryan Schmidt wrote:

  Files that don't contain special characters (i.e. no characters above 
  codepoint 127) don't have an encoding, and can be said to be in any 
  encoding -- UTF-8, ASCII, ISO-8859-1 -- doesn't matter, they're all the 
  same for the lower 127 codepoints.

 Ok, maybe not *any* encoding. Certainly not UTF-16 (UCS-2) or UTF-32 (UCS-4) 
 which use 2 or 4 bytes respectively for each character.

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP files in utf-8 without bom?

2011-03-30 Thread Ryan Schmidt

On Mar 30, 2011, at 06:13, func0der wrote:

 Yeah i was just wondering because notepad++ showed me ANSII

There is no such thing as ANSII. There is ASCII:

http://en.wikipedia.org/wiki/ASCII

And there is ANSI:

http://en.wikipedia.org/wiki/Windows-1252


 and the
 lanuage file i baked with the console. i put an ü in it and it gave
 me a ? in the browser view.

ü is a special character, a codepoint above 127; the fact that it showed up 
as ? in your browser (where CakePHP is outputting UTF-8) suggests it was not 
a known UTF-8 entity, and hence that you did not save the file as UTF-8, which 
you should do. I do not know the notepad++ software so I cannot help you how to 
do that in that software.


-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP files in utf-8 without bom?

2011-03-30 Thread func0der
Yeah sorry. One i to much.

Yeah worked out just fine.

Thanks for helping and google notepad++. just a great editor :P

On Mar 30, 2:03 pm, Ryan Schmidt google-2...@ryandesign.com wrote:
 On Mar 30, 2011, at 06:13, func0der wrote:

  Yeah i was just wondering because notepad++ showed me ANSII

 There is no such thing as ANSII. There is ASCII:

 http://en.wikipedia.org/wiki/ASCII

 And there is ANSI:

 http://en.wikipedia.org/wiki/Windows-1252

  and the
  lanuage file i baked with the console. i put an ü in it and it gave
  me a ? in the browser view.

 ü is a special character, a codepoint above 127; the fact that it showed 
 up as ? in your browser (where CakePHP is outputting UTF-8) suggests it was 
 not a known UTF-8 entity, and hence that you did not save the file as UTF-8, 
 which you should do. I do not know the notepad++ software so I cannot help 
 you how to do that in that software.

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP files in utf-8 without bom?

2011-03-29 Thread euromark
utf8 and ansii is exactle the same as long as you dont use special
chars!
meaning:
if you use english in your views and translate them via locale (po
files)
you dont need to save them as utf8
but IF you use utf8 chars in your one of your views you gotto save
this one correctly



On 29 Mrz., 19:44, func0der funco...@live.com wrote:
 Hey guys,

 i was just wondering that all files of cakephp are encoded in ANSII
 and not in utf-8 without bom.
 Even though your default settings for the encoding in the database and
 the files are utf-8.

 I thought everything has to be utf-8 to make a project with utf-8 work
 probably?

 Are there any special repos for the utf-8 version or something?

 Looking forward to you answer ;P

 Greetings
 func0der

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP files in utf-8 without bom?

2011-03-29 Thread Ryan Schmidt

On Mar 29, 2011, at 12:44, func0der wrote:

 i was just wondering that all files of cakephp are encoded in ANSII
 and not in utf-8 without bom.
 Even though your default settings for the encoding in the database and
 the files are utf-8.
 
 I thought everything has to be utf-8 to make a project with utf-8 work
 probably?
 
 Are there any special repos for the utf-8 version or something?

I don't know whether you meant ASCII or ANSI, but either way you're probably 
missing the point. I've looked at several files in the CakePHP source that 
contain special characters. Each of them was UTF-8 encoded, as I expected. 
Files that don't contain special characters (i.e. no characters above codepoint 
127) don't have an encoding, and can be said to be in any encoding -- UTF-8, 
ASCII, ISO-8859-1 -- doesn't matter, they're all the same for the lower 127 
codepoints.


-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP files in utf-8 without bom?

2011-03-29 Thread Ryan Schmidt
On Mar 29, 2011, at 18:09, Ryan Schmidt wrote:

 Files that don't contain special characters (i.e. no characters above 
 codepoint 127) don't have an encoding, and can be said to be in any encoding 
 -- UTF-8, ASCII, ISO-8859-1 -- doesn't matter, they're all the same for the 
 lower 127 codepoints.

Ok, maybe not *any* encoding. Certainly not UTF-16 (UCS-2) or UTF-32 (UCS-4) 
which use 2 or 4 bytes respectively for each character.


-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php