{"id":6332,"date":"2012-10-06T14:34:35","date_gmt":"2012-10-06T19:34:35","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6332"},"modified":"2012-10-06T14:34:41","modified_gmt":"2012-10-06T19:34:41","slug":"utf-16-strings-files","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/10\/06\/utf-16-strings-files\/","title":{"rendered":"UTF-16 &ldquo;.strings&rdquo; Files"},"content":{"rendered":"<p><a href=\"http:\/\/gigliwood.com\/blog\/to-hell-with-utf-16-strings.html\">Dan Wood<\/a>:<\/p>\n<blockquote cite=\"http:\/\/gigliwood.com\/blog\/to-hell-with-utf-16-strings.html\"><p>For years, we&rsquo;ve followed Apple&rsquo;s <a href=\"https:\/\/developer.apple.com\/library\/mac\/documentation\/MacOSX\/Conceptual\/BPInternational\/Articles\/StringsFiles.html\">documented recommendation<\/a> that .strings files should be saved in UTF-16 format [&#8230;] But this has caused so many headaches, that I finally decided it&rsquo;s time to defy this recommendation, and go UTF-8 for our .strings files.<\/p><\/blockquote>\n<p>Xcode now converts strings files to UTF-16 when building a project, so I now store them in UTF-8, which works better with version control and other tools.<\/p>","protected":false},"excerpt":{"rendered":"<p>Dan Wood: For years, we&rsquo;ve followed Apple&rsquo;s documented recommendation that .strings files should be saved in UTF-16 format [&#8230;] But this has caused so many headaches, that I finally decided it&rsquo;s time to defy this recommendation, and go UTF-8 for our .strings files. Xcode now converts strings files to UTF-16 when building a project, so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,71],"class_list":["post-6332","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6332"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6332\/revisions"}],"predecessor-version":[{"id":6334,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6332\/revisions\/6334"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}