-={ fredag, 11 marts 2016, 04:52:20 +0100 }=-
Hey Benny!
BP> what charset should be used in iconv when its not defined
I have no idea. Your guess is probably as good as anyone else's including
developers. The Russians use of CP866 appears to be working but I wouldn't bet
the farm on it nor would I guarentee it's universality. Myself I only use
ASCII when it comes documents where the character set cannot be determined and
would NEVER use a CHRS kludge to reset the character set in any of my editors.
Would you?
Also setting the default to utf8 is the safest for everything including ASCII.
BP> so report to aktive developpers about it did not help
Besides the LINUX echo, who would they be and where would I report it?
BP> could you dokument that latin-1 problem in more verbose
As per any document of valid character set aliases, there is no such thing as
LATIN-1. Some people think it is ISO-8859-1 but the closest alias it has in
reality is LATIN1. It might work with Microsoft's CP1250 but I cannot say for
sure not having any microsoft products to test it on or any credible
documentation on LATIN-1 as an alias for anything. All I know is that it
doesn't work with glibc's iconv as shown using;
:read !echo -e "A M\xf8\xf8se once bit my sister..." | iconv -f latin-1
-t utf8
iconv: conversion from `latin-1' is not supported
Try `iconv --help' or `iconv --usage' for more information.
However this works;
:read !echo -e "A M\xf8\xf8se once bit my sister..." | iconv -f latin1
-t utf8
A Møøse once bit my sister...
or even this which is not an alias but the actual character set which is the
same as your CHRS kludge;
:read !echo -e "A M\xf8\xf8se once bit my sister..." | iconv -f
ISO-8859-1 -t utf8
A Møøse once bit my sister...
Note that I took the liberty of dropping the '2' at the end of the CHRS kludge
since it is another useless piece of information.
BP> google is bad like hell when it comes to opensource problems
That I wouldn't know anything about. Their search engine is good. I use it
all the time.
Life is good,
Maurice
... Don't cry for me I have vi.
--- GNU bash, version 4.3.42(1)-release (x86_64-unknown-linux-gnu)
* Origin: Pointy Stick Society - Ladysmith BC, Canada (1:153/7001.0)
|