You could also prefix the link by a string holding (in ascii) the number of bytes of the unencoded link.

But that makes raw/manual editing of an org file much harder.


2017-08-14 18:26 GMT+02:00 Neil Jerram <neil@ossau.homelinux.net>:
Except if your original string was "%org-9.0"...

For this kind of approach to work, you generally need to prefix everything; specifically included the cases that are _not_ encoded.

Regards - Neil



On 12/08/17 16:01, John Kitchin wrote:
I was thinking of something like how all PDF files start with something
like %PDF-1.3. So any string that started with %org-9.0, for example
would be certain to be encoded, whereas any other beginning would not be
certain.

Nicolas Goaziou writes:

Hello,

John Kitchin <jkitchin@andrew.cmu.edu> writes:

Could you put some magic at the beginning of the string that indicates it
is encoded?
I don't know. Could you elaborate a bit?

Regards,






--
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------