{"id":829,"date":"2023-03-03T22:41:19","date_gmt":"2023-03-03T14:41:19","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=829"},"modified":"2023-04-29T16:50:58","modified_gmt":"2023-04-29T08:50:58","slug":"robot-framework-parse-chinese-conversion-of-utf-8-format","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/03\/robot-framework-parse-chinese-conversion-of-utf-8-format\/","title":{"rendered":"Robot Framework\u4e2d\u89e3\u6790utf-8\u683c\u5f0f\u7684\u4e2d\u6587\u8f6c\u6362"},"content":{"rendered":"<p>\u5728Robot Framework\u4e2d\uff0c\u63a5\u6536Python\u8fd4\u56de\u6216\u5f15\u5165\u5916\u90e8\u6587\u4ef6\u4e2d\u7684\u53d8\u91cf\uff0c\u5982\u679c\u6b64\u53d8\u91cf\u7684\u503c\u4e3a\u4e2d\u6587\uff0c\u5728\u6253\u5370\u6b64\u53d8\u91cf\u7684\u65f6\u5019\uff0c\u4f1a\u53d1\u73b0\u6253\u5370\u51fa\u6765\u7684\u7ed3\u679c\u662futf-8\u5341\u516d\u8fdb\u5236\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u800c\u4e0d\u662f\u4e2d\u6587\u3002\u9700\u8981\u901a\u8fc7\u89e3\u7801\u7684\u65b9\u5f0f\u5c06\u5176\u8f6c\u6362\u6210utf-8\u7f16\u7801\u5185\u5bb9\uff0c\u5373\u53ef\u5c55\u793a\u4e2d\u6587\u3002<\/p>\n<p><!-- more --><\/p>\n<p>\u811a\u672c\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">${desc}    Set Value    ${data[0]}\nlog    ${desc}\n${desc_enc}   Evaluate    &#039;${content}&#039;.decode(&#039;utf-8&#039;)\nlog    ${desc_enc}<\/code><\/pre>\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n<pre><code class=\"language-python\">INFO : ${desc} = Welcome to \\xe6\\x9d\\xad\\xe5\\xb7\\x9e\nINFO : Welcome to \\xe6\\x9d\\xad\\xe5\\xb7\\x9e\nINFO : ${desc} = Welcome to \u676d\u5dde\nINFO : Welcome to \u676d\u5dde<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Robot Framework\u4e2d\uff0c\u63a5\u6536Python\u8fd4\u56de\u6216\u5f15\u5165\u5916\u90e8\u6587\u4ef6\u4e2d\u7684\u53d8\u91cf\uff0c\u5982\u679c\u6b64\u53d8\u91cf\u7684\u503c\u4e3a\u4e2d\u6587\uff0c\u5728\u6253\u5370\u6b64 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[228],"tags":[],"class_list":["post-829","post","type-post","status-publish","format-standard","hentry","category-robot-framework"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=829"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/829\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}