Hours of Googling has not helped me resolve a seemingly simple question - Given a string s, how can I tell whether it's ascii (and thus 1 byte per character) or UTF-8 (and two bytes per character)? This is python 2.4.3, so I don't have getsizeof available to me. -- http://mail.python.org/mailman/listinfo/python-list
- String is ASCII or UTF-8? C. Benson Manica
- Re: String is ASCII or UTF-8? Alf P. Steinbach
- Re: String is ASCII or UTF-8? Stef Mientki
- Re: String is ASCII or UTF-8? Robert Kern
- Re: String is ASCII or UTF-8? Stef Mientki
- Re: String is ASCII or UTF-8? Emile van Sebille
- Re: String is ASCII or UTF-8? Martin v. Loewis
- Re: String is ASCII or UTF-8? Tim Golden
- Re: String is ASCII or UTF-8? C. Benson Manica
- Re: String is ASCII or UTF-8? Richard Brodie
- Re: String is ASCII or UTF-8? C. Benson Manica