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


Groups > comp.lang.python > #58503

how to find out utf or not

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <mohsen@pahlevanzadeh.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.079
X-Spam-Evidence '*H*': 0.88; '*S*': 0.04; 'subject:not': 0.03; 'suppose': 0.07; 'utf-8': 0.07; 'variable': 0.18; 'all,': 0.19; 'not,': 0.20; 'initialized': 0.31; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'such': 0.63; 'dear': 0.65; 'determine': 0.67; 'received:178': 0.74; 'subject:find': 0.84
DKIM-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pahlevanzadeh.org; s=default; h=Content-Transfer-Encoding:Mime-Version:Content-Type:Date:To:From:Subject:Message-ID; bh=hWRysR29yMVbwm16DDxKBiPnWczMtbdbX72Q/2JZjwU=; b=S64VXQ7n3vm7EQQrAzSOBRhH+BTi0+YarqleJu+ZrE9ztLsJPOawMvPEtUiB3Wn0B4HEqb3qcOXhUDyCGwzwNcPMQXuO8IFpZjQs3f27kYvINFxmL+b+n/iMIlYKL2W9+nBG9AGcsLfeaAyc3CA8RPp1Oqty6pd+FRSEwUKhvV8=;
Subject how to find out utf or not
From Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
To python-list@python.org
Date Tue, 05 Nov 2013 16:32:57 +0330
Content-Type text/plain; charset="UTF-8"
X-Mailer Evolution 3.8.5-2+b1
Mime-Version 1.0
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - part7.royal-servers.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - pahlevanzadeh.org
X-Get-Message-Sender-Via part7.royal-servers.com: authenticated_id: mohsen@pahlevanzadeh.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2054.1383661067.18130.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1383661067 news.xs4all.nl 15907 [2001:888:2000:d::a6]:34335
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:58503

Show key headers only | 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