[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to "asciify" a string?
From: |
Marcin Borkowski |
Subject: |
Re: Is there a way to "asciify" a string? |
Date: |
Wed, 30 May 2018 12:12:53 +0200 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
On 2018-05-28, at 12:39, tomas@tuxteam.de wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, May 28, 2018 at 12:28:05PM +0200, Marcin Borkowski wrote:
>>
>> On 2018-05-28, at 10:15, Philipp Stephani <p.stephani2@gmail.com> wrote:
>>
>> > Marcin Borkowski <mbork@mbork.pl> schrieb am So., 27. Mai 2018 um 14:38
>> > Uhr:
>> >
>> >> I understand that.
>> >>
>> >> Still, I need something *simple*. I have a person's name (possibly with
>> >> some national characters), and I want to derive a filename from it [...]
>
>> That's an interesting idea. However, I disagree. My idea is to have
>> a number (because that helps to keep some order, and there may be - and
>> sometimes are - more than one item relating to the same person), but
>> a name is _very_ helpful for menomic reasons.
>
> One often-used method is to just URL-encode [1] the thing. On the plus
> side, it's always ASCII and you have a "lossless" mapping back and forth,
> on the down side you lose lexicographic order and (some) readability
> (although we trained rats have already learnt to cope with %3D and %2F)
>
> Emacs supports that with the pair of functions `url-hexify-string' and
> `url-unhex-string' (see, Eli? Sometimes even /me finds something .-)
Very interesting (though not acceptable in my use-case). Thanks,
though!
--
Marcin Borkowski
http://mbork.pl
- Re: Is there a way to "asciify" a string?, (continued)
- Re: Is there a way to "asciify" a string?, John Mastro, 2018/05/30
- Re: Is there a way to "asciify" a string?, tomas, 2018/05/27
- Re: Is there a way to "asciify" a string?, Philipp Stephani, 2018/05/28
- Re: Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/28
- Re: Is there a way to "asciify" a string?, tomas, 2018/05/28
- Re: Is there a way to "asciify" a string?, Yuri Khan, 2018/05/28
- Re: Is there a way to "asciify" a string?, tomas, 2018/05/28
- Re: Is there a way to "asciify" a string?,
Marcin Borkowski <=
- Re: Is there a way to "asciify" a string?, Stefan Monnier, 2018/05/31
- Re: Is there a way to "asciify" a string?, S. Champailler, 2018/05/31
- Re: Is there a way to "asciify" a string?, Richard Wordingham, 2018/05/31
- Re: Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/31
- Re: Is there a way to "asciify" a string?, Eli Zaretskii, 2018/05/31
- Re: Is there a way to "asciify" a string?, Yuri Khan, 2018/05/31
- Re: Is there a way to "asciify" a string?, Stefan Monnier, 2018/05/31
- Message not available
- Re: Is there a way to "asciify" a string?, James K. Lowden, 2018/05/31
- Re: Is there a way to "asciify" a string?, Stefan Monnier, 2018/05/31
Re: Is there a way to "asciify" a string?, Eric Abrahamsen, 2018/05/27