eZ Community » Forums » Developer » ANSI / UTF-8 files
expandshrink

ANSI / UTF-8 files

ANSI / UTF-8 files

Wednesday 22 February 2012 3:07:03 pm - 3 replies

Hello,

I have a general question on eZ Publish files, PHP and templates from the kernel and default extensions.

Why are those files are encoded in ANSI and not in UTF-8?

Thanks,

Jean-Luc.

Wednesday 22 February 2012 4:27:24 pm

The coding standards (http://share.ez.no/blogs/bertrand-dunogier/the-ez-coding-standards-need-you) are very clear about this:

All text files must be encoded as UTF-8 (without byte-order-mark).

I hope you are speaking of legacy files here...

Regards
Donat

Wednesday 22 February 2012 5:49:12 pm

Hi Donat,

I know that all files must be encoded in UTF-8, but I don't understand, currently eZ Publish kernel files are encoded in ANSI, but I might be wrong.

Best regards,

Thursday 23 February 2012 10:54:01 am

Hi Jean-Luc,

ANSI is a subset of UTF-8 and if there are no non ANSI characters in the files (which are probably the most files in eZ Publish), there won't be any difference in encoding. Only when adding non ANSI characters, you need to explicity save the file in UTF-8 without BOM.

Modified on Thursday 23 February 2012 10:54:35 am by Edi Modrić

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from