[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

AW: [Bug report] Problem with date not showing properly in file header

From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Mon, 23 Jan 2012 16:13:00 +0000

Hi, Henrik,

Von: Henrik Fahlquist [mailto:henfah_at_gmail.com]

> I am experiencing the problem that the date in the date:-tag in the file header is showing strange characters.
> My locale is Swedish so I guess that may have something to do with the issue.
> An example may look like "Date: 2012-01-09 20:01:20 +0100 (må, 09 jan 2012)" which is really annoying since this is a python file and python won't run the file if it looks like this in the header. Is there any solution to this problem?
> I am currently running the latest version of TortoiseSVN (1.7.4, 32 bit) at Windows XP.

This looks like the file is UTF-8 encoded. Recent python versions won't accept non-ASCII characters if the file does not have an encoding specification.

Encoding can be specified by either adding an UTF-8 Byte Order Mark, or (better) by using the proper encoding header, see http://www.python.org/dev/peps/pep-0263/ for more details.

Best regards

Markus Schaber

-- 
___________________________
We software Automation.
3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50
Email: m.schaber@3s-software.com | Web: http://www.3s-software.com 
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects
Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2910553
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-01-23 17:13:15 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.