TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Advanced PHP Programming (http://www.talkphp.com/advanced-php-programming/)
-   -   Save file as: UTF-8 or ANSI or Unicode? (http://www.talkphp.com/advanced-php-programming/3335-save-file-utf-8-ansi-unicode.html)

Yoosha 09-08-2008 01:49 PM

Save file as: UTF-8 or ANSI or Unicode?
 
Hi,
What is the best choise for: save file as UTF-8 or ANSI or Unicode?
Tnx.

Speeple 09-12-2008 01:24 PM

I use UTF-8 without BOM.

Yoosha 09-13-2008 05:26 AM

I think ANSI is better.
Size of UTF-8 is 3 bytes.
Size of ANSI is 0 bytes.

xenon 09-13-2008 12:10 PM

ANSI can also store a maximum of 256 values, whereas UTF-8 contains every character you would ever need. What's about the bytes part?

Speeple 09-22-2008 01:57 PM

Yoosha, ANSI is 1 byte, UTF-8 has variable character size depending on the char. It inherits the ASCII 0 - 256 characters, which like with ASCII only take up 1 byte per char up to a certain range.

CJK chars (Chinese, Japanese, Korean, etc.) take multiple bytes to represent their symbols, glyphs and characters.


All times are GMT. The time now is 09:23 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0