AW: [Bug report] Problem with date not showing properly in file header
From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Tue, 24 Jan 2012 08:21:27 +0000
Hi, Felix,
Von: Felix Saphir [mailto:felix.saphir_at_kantarmedia.com]
> I'm sorry for being off-topic, but that's not the intended use of the
Formally, yes.
However, most text editors I know (and all of those who explicitly support UTF-8) use the BOM as Heuristics to detect UTF-8 if configured to "auto-detect encoding" or similar settings.
Second, the abovementioned PEP-0263 specifies that Python will use the UTF-8 BOM as indication of UTF-8 encoded files if no explicit encoding definition is given (and throw an error if an UTF-8 BOM is present together with an encoding definition specifying a different encoding).
So for the given use case of Python source files, prepending an UTF-8 BOM is a working solution, although properly specifying the encoding definition clearly is the preferable solution (which I indicated using the word "better" in my original answer).
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=2910684 To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].Received on 2012-01-24 09:21:47 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.