Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode's Editor losing text encoding




On Jul 30, 2008, at 5:48 AM, Rosyna wrote:

Has anyone noticed Xcode suddenly losing the text encoding of a document with MacRoman characters? (specifically things like 'ƒ_sø').

It was the oddest thing, Xcode first gave 220 warnings about the character, I closed the project and reopened it and the file and all the non-ASCII characters had changed. I opened the file in BBEdit and it too showed the encoding error. I eventually had to restore the file from svn.

This is the first time this has ever happened to me and I wonder if anyone else has seen it. (Xcode 3.1).

I have a lot of old PowerPlant sources that have a MacRoman bullet character in the comments. Something like:


// ---------------------------------------------------------------------------
// • GetParameters
// ---------------------------------------------------------------------------


Older versions of Xcode (probably 2.4) changed the bullet to garbage in some fraction of the source files. Since they were in comments I didn't pay too much attention. In those files that were corrupted I eventually converted the bullets to asterisks.

In looking at some of these files now Xcode 3.1 has the file encoding set to MacRoman for both the files that were corrupted in the past and ones that were never corrupted.

Not sure if that helps but yes it can corrupt MacRoman files. I guess it prefers utf-8.

--
Brian Stern
email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Xcode's Editor losing text encoding (From: Rosyna <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.