From: Gerrit G. <Gar...@vr...> - 2011-11-08 13:31:51
|
Hi Dominic, I've tried your suggestion in line 70 and 87 but it ends up with the same error. Regards, Gerrit -- Gerrit Garbereder B.Sc. Mathematisch-technischer Softwareentwickler RWTH Aachen University, Center for Computing and Communication Rechen- und Kommunikationszentrum Virtual Reality Group Dienstgebäude Kopernikusstraße 6, 52074 Aachen (Germany) Raum 108 Tel.: +49 (0) 241 80-29731 mailto:gar...@vr... URL: www.vr.rwth-aachen.de On Tue, Nov 8, 2011 at 14:15, Dominik Rausch <ra...@vr...> wrote: > Hi > > It seems as if the file has a different encoding than guessed by python. > Try > outFile = open( file, 'r+', encoding='utf-8' ) > instead of > outFile = open( file, 'r+' ) > > Regards > Dominik > > -- > > Dipl.-Inform. Dominik Rausch > > Virtual Reality Group, RWTH Aachen University > Lehrstuhl für Informatik 12 (Hochleistungsrechnen) > > Rechen- und Kommunikationszentrum > Seffenter Weg 23, 52074 Aachen > Tel. +49 241 80 29732 > ra...@vr... > www.vr.rwth-aachen.de > >>-----Original Message----- >>From: Gerrit Garbereder [mailto:Gar...@vr...] >>Sent: Tuesday, November 08, 2011 1:34 PM >>To: vis...@li... >>Subject: [vistavrtoolkit-general] ConversionScript >> >>Hi, >> >>i've just updated to ViSTA trunk and would like to convert our code >>via the ConversionScripts. Unfortunately I end up with the following >>error: >> >>C:\Users\Gerrit\work\contrib\ConversionScripts>c:\Python32\python.exe >>VistaToTrunk.py c:\Users\Gerrit\work\VisaApplication\trunk >>startdir: c:\Users\Gerrit\work\VisaApplication\trunk >>Traceback (most recent call last): >> File "VistaToTrunk.py", line 129, in <module> >> ProcessFiles( root, files ) >> File "VistaToTrunk.py", line 103, in ProcessFiles >> ReplaceContent( fullName, tuple[1] ) >> File "VistaToTrunk.py", line 71, in ReplaceContent >> filecontent = input.read() >> File "c:\Python32\lib\encodings\cp1252.py", line 23, in decode >> return codecs.charmap_decode(input,self.errors,decoding_table)[0] >>UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position >>1155: character maps to <undefined> >> >>Can someone help me to use the script? >>I'm using Python 3.2.2 (default, Sep 4 2011, 09:07:29) [MSC v.1500 64 >>bit (AMD64)] >> >>Best regards, >>Gerrit >> >>-- >>Gerrit Garbereder B.Sc. >>Mathematisch-technischer Softwareentwickler >> >>RWTH Aachen University, Center for Computing and Communication >>Rechen- und Kommunikationszentrum >>Virtual Reality Group >>Dienstgebäude Kopernikusstraße 6, 52074 Aachen (Germany) >>Raum 108 >>Tel.: +49 (0) 241 80-29731 >>mailto:gar...@vr... >>URL: www.vr.rwth-aachen.de >> >>------------------------------------------------------------------------ >>------ >>RSA(R) Conference 2012 >>Save $700 by Nov 18 >>Register now >>http://p.sf.net/sfu/rsa-sfdev2dev1 >>_______________________________________________ >>vistavrtoolkit-general mailing list >>vis...@li... >>https://lists.sourceforge.net/lists/listinfo/vistavrtoolkit-general > > |