On 04/02/2015 12:01 AM, [email protected] wrote:
Good morning,
i tried to search for words with germen Umlaute in a file. But it does
not work.
What do I have to do to make the procedure working?
1) What version of Python are you using?
String/byte handling is vastly different between 2.x and 3.x.
2) What does liste.encoding return?
3) I would do c = u"ü"
Thanks for your help.
Claus
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 02 08:40:44 2015
@author: Claus
"""
c = "ü"
liste = open("Wortliste10.txt").read()
a = liste.split(",")
for s in a:
if c in s:
if len(s) == 8:
print(s)
--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
--
Adrian Klaver
[email protected]
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.