Используйте другой encode
метод в URLEncoder:
URLEncoder.encode(String, String)
первый параметр является текстом для кодирования; вторым является название кодировки символов для использования (например, UTF-8
). Например:
System.out.println(
URLEncoder.encode(
"urlParameterString",
java.nio.charset.StandardCharsets.UTF_8.toString()
)
);
Found some good links
Типичные файловые системы (* nix, ms-dos и т. Д.) Организуют файлы иерархически. Например,
c: \ представляет вершину иерархии. c: \ foo - следующий уровень в иерархии c: \ foo \ bar - это подузел \ foo etc..
Each file exists in one and only one location in this hierarchy.
By contrast, a database file system organizes files by metadata attributes. For example, topic, type, author, etc.. Rather than existing in one particular place in a hierarchy, the file exists in multiple "places" depending on its attributes.
The last question you ask is unanswerable.
It's a file system that stores files as blobs in a database, rather than in a hierarchy of directories. Imagine a web-site with no "directory-like" hierarchy in the URL - just loads of tags and categories and a big "search" field - something like that, only on your hard-drive.
Pros & cons? Ask yourself, how many database filesystems have I ever seen? Do you need to ask more?
It's a file system where files have significant amounts of metadata. For example, the iTunes library might count as a database file system; not only do you have files on disk and know where they are, but you have tags (genres) and other metadata like author (artist).