<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>2023/09 on 六二三&#39;s Blog</title>
    <link>http://sconts.com/legacy/archives/2023/09/</link>
    <description>Recent content in 2023/09 on 六二三&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 26 Sep 2023 12:10:54 +0800</lastBuildDate><atom:link href="http://sconts.com/legacy/archives/2023/09/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>关于\x开头的字符串编码转换中文解决方法</title>
      <link>http://sconts.com/legacy/post/start_with_x_unicode-issue/</link>
      <pubDate>Tue, 26 Sep 2023 12:10:54 +0800</pubDate>
      
      <guid>http://sconts.com/legacy/post/start_with_x_unicode-issue/</guid>
      <description>&lt;p&gt;\x开头的编码是十六进制字符，\x后面跟的字符即为十六进制的字符串。&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line hl&#34;&gt;&lt;span class=&#34;ln&#34; id=&#34;line--1&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#line--1&#34;&gt;1&lt;/a&gt;&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;In &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;41&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: &lt;span class=&#34;nv&#34;&gt;s1&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;世界如此美妙，我却如此暴躁，这样不好不好&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34; id=&#34;line--2&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#line--2&#34;&gt;2&lt;/a&gt;&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;In &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;42&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: s1.encode&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;utf-8&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line hl&#34;&gt;&lt;span class=&#34;ln&#34; id=&#34;line--3&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#line--3&#34;&gt;3&lt;/a&gt;&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;Out&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;42&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: b&lt;span class=&#34;s1&#34;&gt;&amp;#39;\xe4\xb8\x96\xe7\x95\x8c\xe5\xa6\x82\xe6\xad\xa4\xe7\xbe\x8e\xe5\xa6\x99\xef\xbc\x8c\xe6\x88\x91\xe5\x8d\xb4\xe5\xa6\x82\xe6\xad\xa4\xe6\x9a\xb4\xe8\xba\x81\xef\xbc\x8c\xe8\xbf\x99\xe6\xa0\xb7\xe4\xb8\x8d\xe5\xa5\xbd\xe4\xb8\x8d\xe5\xa5\xbd&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line hl&#34;&gt;&lt;span class=&#34;ln&#34; id=&#34;line--4&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#line--4&#34;&gt;4&lt;/a&gt;&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;Out&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;43&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;将\x转为中文的几种方式：&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34; id=&#34;line--1&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#line--1&#34;&gt;1&lt;/a&gt;&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;$ &lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; -e &lt;span class=&#34;s1&#34;&gt;&amp;#39;\xe4\xb8\x96\xe7\x95\x8c\xe5\xa6\x82\xe6\xad\xa4\xe7\xbe\x8e\xe5\xa6\x99\xef\xbc\x8c\xe6\x88\x91\xe5\x8d\xb4\xe5\xa6\x82\xe6\xad\xa4\xe6\x9a\xb4\xe8\xba\x81\xef\xbc\x8c\xe8\xbf\x99\xe6\xa0\xb7\xe4\xb8\x8d\xe5\xa5\xbd\xe4\xb8\x8d\xe5\xa5\xbd&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34; id=&#34;line--2&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#line--2&#34;&gt;2&lt;/a&gt;&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;世界如此美妙，我却如此暴躁，这样不好不好
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;REF:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://linuxhint.com/string-to-hexadecimal-in-python/&#34;&gt;https://linuxhint.com/string-to-hexadecimal-in-python/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://blog.csdn.net/YungGuo/article/details/110197818&#34;&gt;https://blog.csdn.net/YungGuo/article/details/110197818&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;: http://sconts.com/legacy/post/start_with_x_unicode-issue/</description>
    </item>
    
    <item>
      <title>如何解决vscode在国内网络环境下插件更新失败的问题</title>
      <link>http://sconts.com/legacy/post/how-to-fixed-vscode-extention-install-failed.md/</link>
      <pubDate>Mon, 18 Sep 2023 20:20:54 +0800</pubDate>
      
      <guid>http://sconts.com/legacy/post/how-to-fixed-vscode-extention-install-failed.md/</guid>
      <description>&lt;p&gt;在使用vscode调试rust代码的时候，需要安装&lt;code&gt;codelldb&lt;/code&gt;扩展，同时还需要安装该插件的平台依赖包，但是编辑器从github直接下载有时候会出奇的慢甚至下载失败。这里提供俩种可行性比较高的办法。&lt;/p&gt;&lt;br /&gt;: http://sconts.com/legacy/post/how-to-fixed-vscode-extention-install-failed.md/</description>
    </item>
    
  </channel>
</rss>
