What characters allowed in file names on Android?

alex2k8 picture alex2k8 · Apr 21, 2010 · Viewed 47.3k times · Source

What special characters are allowed for file names on Android?

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

Also, can I save file with Unicode name?

Answer

alex2k8 picture alex2k8 · Apr 24, 2010
  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 = "|\\?*<\":>+[]/'";