{"id":6733,"date":"2012-08-29T07:00:00","date_gmt":"2012-08-29T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2012\/08\/29\/psychic-debugging-why-chinese-characters-dont-work\/"},"modified":"2012-08-29T07:00:00","modified_gmt":"2012-08-29T07:00:00","slug":"psychic-debugging-why-chinese-characters-dont-work","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20120829-00\/?p=6733\/","title":{"rendered":"Psychic debugging: Why Chinese characters don&#039;t work"},"content":{"rendered":"<p>Here&#8217;s a walkthrough of an actual case of psychic debugging.<\/p>\n<blockquote class=\"q\"><p> I&#8217;m using the internal XYZ table-generating tool, but it appears to be useless in my case. Does this tool work? Right now, I&#8217;m just resorting to the manual method of generating my data table (Chinese and English). <\/p><\/blockquote>\n<p> Hooray for vague questions! &#8220;<a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2010\/04\/21\/9999675.aspx\">It appears to be useless<\/a>.&#8221;\n But there were enough tiny clues in the question that made it possible to make a psychic guess.\n First of all, the parenthetical &#8220;Chinese and English&#8221; suggests that there are Chinese characters in the data being passed to the XYZ table-generating tool.\n Second of all, one might make a guess that <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2005\/03\/08\/389527.aspx\"> the file encoding is wrong<\/a>. Maybe the XYZ program <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2008\/08\/11\/8847305.aspx\"> expects the file to be in UTF-8 format<\/a>, but you&#8217;re saving it in UTF-16 format. Maybe the XYZ program supports only ASCII data.<\/p>\n<p> I never heard back, which could have meant that my psychic powers were right, or it could have meant that my psychic powers were wrong, but the person figured, &#8220;No point asking this guy, all he does is <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2011\/06\/10\/10173111.aspx\"> make random guesses based on incomplete information<\/a>.&#8221; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a walkthrough of an actual case of psychic debugging. I&#8217;m using the internal XYZ table-generating tool, but it appears to be useless in my case. Does this tool work? Right now, I&#8217;m just resorting to the manual method of generating my data table (Chinese and English). Hooray for vague questions! &#8220;It appears to be [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-6733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>Here&#8217;s a walkthrough of an actual case of psychic debugging. I&#8217;m using the internal XYZ table-generating tool, but it appears to be useless in my case. Does this tool work? Right now, I&#8217;m just resorting to the manual method of generating my data table (Chinese and English). Hooray for vague questions! &#8220;It appears to be [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/6733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=6733"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/6733\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=6733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=6733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=6733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}