Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58503

how to find out utf or not

Subject how to find out utf or not
From Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
Date 2013-11-05 16:32 +0330
Newsgroups comp.lang.python
Message-ID <mailman.2054.1383661067.18130.python-list@python.org> (permalink)

Show all headers | View raw


Dear all,

Suppose i have a variable such as : myVar = 'x'

May be it initialized with myVar = u'x' or myVar = 'x'

So i need determine content of myVar that it's utf-8 or not, how can i
do it?


--mohsen


Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

how to find out utf or not Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org> - 2013-11-05 16:32 +0330
  Re: how to find out utf or not Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-05 16:39 +0000
    Re: how to find out utf or not "Gisle Vanem" <gvanem@yahoo.no> - 2013-11-05 18:10 +0100

csiph-web