[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to "asciify" a string?
From: |
S. Champailler |
Subject: |
Re: Is there a way to "asciify" a string? |
Date: |
Thu, 31 May 2018 17:08:47 +0200 (CEST) |
I second that, removing accents and other "nationalities" is much trickier than
one might expect (you can look at Java example, the Java unicode support is
quite complete), especially for lanugages far away from english such as
russian. By "tricky" I mean there are *hundreds* of edge cases. Nevertheless,
there are ways do sort of do what you want by playing with thigsn such as "non
spacing combining characters", "normalized strings", etc. If you have the
opportunity, just try to do it, the great lesson you'lll get of that is that
human languages are super complexe (and thus super interesting).
Today, everyone should use Unicode, it's much simpler. Many file systems
support unicode.
stF
> Le 31 mai 2018 à 16:23, Stefan Monnier <monnier@iro.umontreal.ca> a écrit :
>
>
> > 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.
>
> I really strongly recommend you try to solve this problem by doing
> nothing: keep the name in its full glory. Nowadays users *should*
> expect this to work.
>
>
> Stefan
>
>
- Re: Is there a way to "asciify" a string?, (continued)
- Re: Is there a way to "asciify" a string?, Marcin Borkowski, 2018/05/30
- 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, 2018/05/30
- 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 <=
- 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
Re: Is there a way to "asciify" a string?, Eli Zaretskii, 2018/05/27