6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

古いプロジェクトのLocalizable.strings がUTF-16で作られていたので UTF-8に変更した

Last updated at Posted at 2017-09-28

👼

あるプロジェクトの改修をしていて出くわしたのですが、
Localizable.stringsがutf-16で作られていました。
gitではutf-16で作られたファイルの差分が見ることができないので、
複数のタスクを同時に進めると毎回コンフリクトし管理が大変でした。

👇こうすることで解決できます。
スクリーンショット 2017-09-29 2.09.09.png

Appleもutf-8をおすすめしてます

Note: It is recommended that you save strings files using the UTF-8 encoding, which is the default encoding for standard strings files. Xcode automatically transcodes strings files from UTF-8 to UTF-16 when they’re copied into the product. For more information about the standard strings file format, see Creating Strings Resource Files. For more information about Unicode and its text encodings, go to http://www.unicode.org/ or http://en.wikipedia.org/wiki/Unicode.

6
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?