Re: Xcode 5.0.2 display of Objective-C source in Japanese on an English system?
Re: Xcode 5.0.2 display of Objective-C source in Japanese on an English system?
- Subject: Re: Xcode 5.0.2 display of Objective-C source in Japanese on an English system?
- From: Chris Hanson <email@hidden>
- Date: Mon, 31 Mar 2014 12:31:10 -0700
Use the file inspector to change the text encoding of the source file, and when prompted tell Xcode to reinterpret the text in the file instead of converting it.
For the text encoding to use, I'd try some common Japanese encodings like Shift-JIS and whatever the common Windows Japanese encoding is.
Ideally, you'd also then convert all your source files to UTF-8 and use that in both Xcode and whatever other environments you're using, and in your SCM system. Using a single standard encoding makes things like diffs much easier.
(Changing display fonts won't have any affect, because OS X is a modern operating system that uses Unicode throughout and supports arbitrary combinations of font, text, and encoding by converting everything to Unicode and using fallbacks. The days of purely 8-but character sets where "character 152 maps to glyph 152 in font A which renders like this, and to glyph 152 in font B which renders as something completely different" are a distant memory.)
-- Chris
Sent from my iPad
> On Mar 31, 2014, at 12:11 PM, Alex Zavatone <email@hidden> wrote:
>
> I've got a coworker who is displaying some source Objective-C .h and .m files on his PC in Visual Studio. Japanese characters in it display just fine.
>
> But on his Mac in OS X 10.8.5 under Xcode 5.0.2, where there would be Japanese characters, instead of the Japanese characters, what is displayed are some accented English letters.
>
> Is there a setting or font that would need to be used so that Xcode can display the proper Japanese text in the .h and .m files?
>
> I tried changing display fonts without any luck.
>
> Thanks in advance.
> _______________________________________________
> 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
_______________________________________________
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