
{"id":894,"date":"2012-01-25T10:56:42","date_gmt":"2012-01-25T15:56:42","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=894"},"modified":"2012-01-25T10:56:42","modified_gmt":"2012-01-25T15:56:42","slug":"perforce-unicode-eplic-fail","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=894","title":{"rendered":"Perforce + Unicode = Eplic Fail"},"content":{"rendered":"<p>Just created a Visual Studio Add-in using the wizard. The source files created by the wizard turned out to be UTF-16. The files I create manually are UTF-8. It is all fine until you check in UTF-16 files into Perforce. It sees line endings like this: 0D 00 0A 00 and &#8220;fixes&#8221; them by inserting an extra 0D, making it 0D 00 0D 0A 00.<\/p>\n<p>This, of course, screws up a UTF-16 file royally: you get a file full of some Kanji characters. I actually had to write a program that undoes that deed and manually change file encoding to UTF-8. Ouch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just created a Visual Studio Add-in using the wizard. The source files created by the wizard turned out to be UTF-16. The files I create manually are UTF-8. It is <a href=\"https:\/\/ikriv.com\/blog\/?p=894\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[4],"tags":[],"class_list":["entry","author-ikriv","post-894","post","type-post","status-publish","format-standard","category-hack"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=894"}],"version-history":[{"count":0,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/894\/revisions"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}