How to remove all of the diacritics from a file?

前端 未结 9 1599
Happy的楠姐
Happy的楠姐 2020-12-05 00:10

I have a file containing many vowels with diacritics. I need to make these replacements:

  • Replace ā, á, ǎ, and à with a.
  • Replace ē, é, ě, and è with
9条回答
  •  悲哀的现实
    2020-12-05 00:31

    This may not work. Just because your locale must be set!

    use locale to set LC_ALL, for example:

    export LC_ALL=en_US.iso88591
    

    Note that the full list of locales is available through:

    locale -a
    

提交回复
热议问题