<span class="Apple-style-span" style="font-family: &#39;Lucida Grande&#39;; font-size: 11px; white-space: pre-wrap; ">When a new project is created, XCode takes the user name and pre-fills the headers of the source files.  In Python projects, this creates a problem if the user&#39;s name has non ascii characters (like accents).  The problem is that the application builds and fails with these messages like the ones below in the console.

11/18/07 12:10:36 AM kkpycd[33468] *** Terminating app due to uncaught exception &#39;NSInternalInconsistencyException&#39;, reason: &#39;/Users/jcmendez/kkpycd/main.m:44 main() PyRun_SimpleFile failed with file &#39;/Users/jcmendez/kkpycd/build/Release/kkpycd.app/Contents/Resources/main.py&#39;.  See console for errors.&#39; 

11/18/07 12:10:36 AM kkpycd[33468] Stack: (
    2490802795,
    2487529627,
    2490802251,
    2490802314


Tracking the problem it&#39;s possible to see that:

11/18/07 12:11:11 AM [0x0-0xb40b4].com.yourcompany.kkpy2[95313] SyntaxError: Non-ASCII character &#39;\x8e&#39; in file /Users/jcmendez/kkpy2/build/Release/kkpy2.app/Contents/Resources/kkpy2AppDelegate.py on line 5, but no encoding declared; see 
<a href="http://www.python.org/peps/pep-0263.html">http://www.python.org/peps/pep-0263.html</a> for details 

Not a big deal, but may deter many Python folks from writing Cocoa apps.  Already filed a bug report with Apple, but thought it may be interesting to post in this list as well.</span><div><span class="Apple-style-span" style="font-family: &#39;Lucida Grande&#39;; font-size: 11px; white-space: pre-wrap;">
<br class="webkit-block-placeholder"></span></div><div><span class="Apple-style-span" style="font-family: &#39;Lucida Grande&#39;; font-size: 11px; white-space: pre-wrap; ">Juan C.

</span><br></div>