Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    解决串口终端显示文件列表乱码的问题

    Linux
    5
    11
    3277
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • whycan
      whycan晕哥 LV 9 last edited by

      17a01e08-c62b-464c-afe0-6f63d8aa28b0-image.png

      b1263ccd-66b4-4fac-9579-f04029ad6e95-image.png

      sora1874 J 2 Replies Last reply Reply Quote Share 0
      • sora1874
        sora1874 LV 5 @whycan last edited by

        @whycan 啥现象

        whycan 1 Reply Last reply Reply Quote Share 0
        • whycan
          whycan晕哥 LV 9 @sora1874 last edited by

          @sora1874

          ls /media/usb0/

          显示U盘目录下面中文名乱码。

          whycan 1 Reply Last reply Reply Quote Share 0
          • whycan
            whycan晕哥 LV 9 @whycan last edited by whycan

            @whycan

            用这个命令生成 patch文件:

            diff   -uNr  file file > diff. patch
            diff   -uNr  file2 file2 >> diff. patch
            

            patch文件下载, 复制到 buildroot 的 package/busybox 目录下面:

            0004-chinese-charset.patch

            1 Reply Last reply Reply Quote Share 0
            • whycan
              whycan晕哥 LV 9 last edited by whycan

              46ea7ea6-353e-43fb-b87e-ef0fb9e17125-5d3c73729a0f6318a753d21e02d4370.png

              然后再改一下 VFAT 的默认字符集,或者:

              修改 /etc/usbmount/usbmount.conf
              3ae4a97f-0c97-40b5-a3d4-9bfbb494a1d1-885815441bb1f6ca53d276be21b1c02.png

              参考: https://community.volumio.org/t/utf-8-support-solved/196/2

              /etc/usbmount/usbmount.conf 改成:

              FS_MOUNTOPTIONS="-fstype=vfat,iocharset=utf8,gid=root,dmask=0777,fmask=0777"
              
              1 Reply Last reply Reply Quote Share 0
              • J
                jmhh247 LV 6 @whycan last edited by

                @whycan 在 解决串口终端显示文件列表乱码的问题 中说:

                17a01e08-c62b-464c-afe0-6f63d8aa28b0-image.png

                b1263ccd-66b4-4fac-9579-f04029ad6e95-image.png

                对比软件叫什么名字

                whycan 1 Reply Last reply Reply Quote Share 0
                • whycan
                  whycan晕哥 LV 9 @jmhh247 last edited by

                  @jmhh247
                  乌邦图自带的meld,也可以用diffuse。

                  whycan 1 Reply Last reply Reply Quote Share 0
                  • whycan
                    whycan晕哥 LV 9 @whycan last edited by

                    3b77a43f-1617-4d01-b2d4-87405b8c85e7-image.png

                    然后就搞定了。

                    1 Reply Last reply Reply Quote Share 0
                    • YuzukiTsuru
                      柚木 鉉 LV 9 last edited by

                      感觉源码里注释掉可能有别的用途?

                      1 Reply Last reply Reply Quote Share 0
                      • tigger
                        tigger LV 7 last edited by

                        68654eb5-f1e4-42f1-b9b6-5f6cd5655eea-image.png

                        我的就是这样,都是问号.

                        tigger 1 Reply Last reply Reply Quote Share 0
                        • tigger
                          tigger LV 7 @tigger last edited by

                          @tigger

                          d7a36b9e-e415-4fae-a6c1-eb6ed6d83f32-image.png

                          只改 kernel 和 mount 参数,看来还是不行,一定得对busybox动手?

                          1 Reply Last reply Reply Quote Share 0
                          • 1 / 1
                          • First post
                            Last post

                          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                          行为准则 | 用户协议 | 隐私权政策