Project templates & encoding
Project templates & encoding
- Subject: Project templates & encoding
- From: Sherm Pendley <email@hidden>
- Date: Mon, 26 Oct 2009 14:57:57 -0400
I'm creating some project templates, and everything is going smoothly
except for one thing: For simplicity's sake I want everything in the
template to use UTF-8 encoding. I was able to use UTF-8 for
TemplateInfo.plist by using the XML plist format. But I can't figure
out how to convince Xcode that my main.m (or any other non-XML text
file) is UTF-8. XML-based files such as the project file and
MainMenu.xib are copied, renamed, and macro-expanded correctly, but
the macros in plain text files like main.m are only expanded correctly
if they use MacRoman encoding.
I found some old PB release notes that suggested using a
TextFileEncoding key in the TemplateInfo.plist for file templates. I
tried that, thinking it might also work in project templates. I
experimented with the value, trying the numeric value of
NSUTF8StringEncoding as an integer and as a string value. I also tried
using "NSUTF8StringEncoding" as a string value. I tried saving main.m
with a BOM, hoping that Xcode would pick up on that.
None of that did the trick. :-(
Any suggestions?
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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