Typical text encoding+BOM, and EOL behavior on mobile devices
- by Dan W
Typical things to worry about when dealing with text are the BOM/signature, encoding, and the end of line (EOL) char/chars.
I know that Windows often favours \r\n (CR+LF) and Mac/Linux favours \n (LF), but how about mobile devices such as the iPhone and Android? Do typical apps on those platforms favour one or the other?
Also, which text encodings are mobiles most likely to use - UTF-8, iso-8859-1, or even Windows 1252 (or other default codepage) or maybe even UTF-16? And if they use UTF-8/16, are they likely to need (or require not having) a BOM/signature? What is the typical behavior here?