(zettel (meta (back "00001012920500") (backward "00001012920500") (box-number "1") (created "20260303142555") (forward "00001005000000 00001012920800") (modified "20260303145928") (published "20260303145928") (role "manual") (syntax "zmk") (tags "#api #manual #reference #zettelstore") (title "Plain Encoding")) (rights 4) (encoding "") (content "The \"\"plain\"\" encoding represents a zettel the same way it is stored in a file with an extension [[''.zettel''|00001005000000]].\n\nZettel with a [[syntax|00001006020000#syntax]] value [[\"\"zmk\"\"|00001008000000#zmk]] are typically stored in a file with the extension ''.zettel''.\nStoring zettel with other syntax values in a ''.zettel'' file is also possible, but not recommended.\nIn those cases, the zettel is stored in two files: one file (without a filename extension) contains the metadata, and the other stores the zettel content.\n\nThese two cases are mirrored by specifying the required [[part|00001012920800]] of a zettel:\n\n* If part has the value \"\"zettel\"\", the full zettel, both metadata and content, is encoded.\n This corresponds to storing a zettel in a single file with the extension ''.zettel''.\n* A part value of \"\"meta\"\" encodes only the metadata of a zettel.\n* A part value of \"\"content\"\" (the default) encodes the raw content of a zettel.\n\nIf transferred via HTTP, the content type depends on the selected part:\n\n* If part has the value \"\"zettel\"\", the content type is either ''application/octet-stream'' (for binary content) or a value derived from the ''syntax'' metadata.\n* A part value of \"\"content\"\" results in a content type is derived from the ''syntax'' metadata.\n* A part value of \"\"meta\"\" results in a content type ''text/plain; charset=utf-8''."))