Why does sed fail with International characters and how to fix?
I think the error occurs if the input encoding of the file is different from the preferred encoding of your environment. Example: in is UTF-8 $ LANG=de_DE.UTF-8 sed ‘s/.*| //’ < in X Y $ LANG=de_DE.iso88591 sed ‘s/.*| //’ < in X Y UTF-8 can safely be interpreted as ISO-8859-1, you’ll get strange characters but … Read more