Re: File encoding for files ported between Mac and Windows?
Re: File encoding for files ported between Mac and Windows?
- Subject: Re: File encoding for files ported between Mac and Windows?
- From: David Dunham <email@hidden>
- Date: Tue, 05 Jan 2010 17:21:48 -0800
On 5 Jan 2010, at 10:47, Howard Moon wrote:
> I write a lot of C++ code that is shared between Mac and Windows. I just went through all my files (using CodeWarrior) to make sure that they're all set to use Windows line endings (CR/LF), so that they will load properly in Visual Studio on the PC. However, I'm wondering if I need to do anything about the "file encoding" setting I see on the Mac when I do a Get Info on a file. The files I have mostly say "Western (Mac OS Roman)", but the Preferences setting is "Unicode (UTF-8)". I'm wondering if this makes any difference at all, and if I need to go through and change each file individually to one or the other encoding.
I set them to UTF-8 but pretty much on an as-you-go basis. It seldom matters (because code is in ASCII, and strings are external, right?).
Windows line endings on the other hand is something I worry about more, since Visual Studio may complain.
David Dunham
Mobile: +1 206 769 2227 http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden