160: Query or fragment in data URI

This error message has been obsolete since version 29 of the Aneamal Translator. Please update to the current version.

Legacy information

You used a data URI for a linked file [h]-> or in a metadata declaration. Your data URI also contains the characters question mark ? or hash #, which start the query and fragment components of an URI in general. However, data URIs can not contain these URI components and, since Aneamal expects the data of a data URI to be base64-encoded, the characters must not occur in the encoded data part of the URI either.

Solution

Work without ? and # in your data URI. A fragment marked by # does not make sense anyway when linking files to be integrated into the webpage by the Aneamal Translator.

When linking files with textual content, the query component marked by ? can be used to extract only certain lines from the file – except for in data URIs. So if you need this feature, you can save the content from the data URI as a local file and extract only certain lines from there as in the following example:

[t]->thefile.txt?3:7

URIs with a comma at the start

A comma at the start of an URI is a mark for a textual data URI in Aneamal and is expanded accordingly. For example, [t]->,4pi6 is equivalent to:

[t]->data:;charset=UTF-8;base64,4pi6

If your filename/URI starts with a literal comma and is not meant to be interpreted as data URI, you can prepend the comma with a backslash as in the following example:

[t]->\,ndments?10