在Android上的文件名中允许的字符是什么? [英] What characters allowed in file names on Android?

查看:469
本文介绍了在Android上的文件名中允许的字符是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

允许使用哪些特殊字符的文件名在Android?

 〜@#$%^&放大器; *()_ + / \,
 

另外,我可以保存文件的Uni code的名字?

解决方案
  1. 在Android的(至少是默认)文件名EN codeD为UTF-8。

  2. 看起来保留的文件名字符依赖于文件系统安装( http://en.wikipedia.org/wiki/Filename )。

我认为是保留的:

 私有静态最后弦乐ReservedChars =|?\\ *< \:> + [] /';
 

What special characters are allowed for file names on Android?

~!@#$%^&*()_+/\.,

Also, can I save file with Unicode name?

解决方案

  1. On Android (at least by default) the file names encoded as UTF-8.

  2. Looks like reserved file name characters depend on filesystem mounted (http://en.wikipedia.org/wiki/Filename).

I considered as reserved:

private static final String ReservedChars = "|\\?*<\":>+[]/'";

这篇关于在Android上的文件名中允许的字符是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆