zhanghai / zhanghai/MaterialFiles
ftp传送文件名中含有中文字符的文件报错
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
和#840中描述一致
- 以空格/减号为分隔符,将名称中的字符串划分单元。当名称里有汉字时,其中一个单元的汉字是奇数个。如:
该下滴.png,该下滴-.png,该下滴-哈哈.png,该下滴 哈哈.png。因为名称中的“该下滴”这个单元中的汉字是奇数个,所以报错了。想要解决这个问题,可以删去一个汉字使各单元的汉字数量为偶数个:该下 哈哈.png。“该下”和“哈哈”这两个单元中的汉字都是偶数个,所以没有报错。或者加一个_:该下滴_ 哈哈.png。ftp可能将_认作和汉字一类的事物了。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by reading the linked issue #840 and reproducing an FTP transfer with the Chinese filenames listed here. Done means those filenames transfer without the reported error; the attached image provides additional failure context.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100