Typical text encoding+BOM, and EOL behavior on mobile devices
        Posted  
        
            by 
                Dan W
            
        on Programmers
        
        See other posts from Programmers
        
            or by Dan W
        
        
        
        Published on 2012-10-14T11:34:53Z
        Indexed on 
            2012/10/14
            15:49 UTC
        
        
        Read the original article
        Hit count: 484
        
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?
© Programmers or respective owner