Re: [m17n] convert UTF-8 to \uXXXX

You should be able to perform this with 'recode'. Can't remember the command line sequence (been a while), but the man pages should specify the correct HTML/XML identifiers. Cheers Steve.
Rowdy Rednose <Rowdy.Rednose@gmx.net> 09/07/04 11:19 am >>> Hi,
which tool can convert chars, that are not in the ascii set, from in UTF-8 to &#xXXXX; or \uXXXX as used in HTML/XML? Can iconv do that? (I want to encode complete files, not single characters) Thanks in advance, Rowdy -- To unsubscribe, e-mail: m17n-unsubscribe@suse.com For additional commands, e-mail: m17n-help@suse.com

"Stephen Holmes" <sholmes@novell.com> さんは書きました:
You should be able to perform this with 'recode'.
Can't remember the command line sequence (been a while), but the man pages should specify the correct HTML/XML identifiers. Cheers Steve.
mfabian@magellan:~$ echo aöbc漢字def | recode utf8..h4 aöbc漢字def mfabian@magellan:~$
Rowdy Rednose <Rowdy.Rednose@gmx.net> 09/07/04 11:19 am >>> Hi,
which tool can convert chars, that are not in the ascii set, from in UTF-8 to &#xXXXX; or \uXXXX as used in HTML/XML? Can iconv do that? (I want to encode complete files, not single characters)
Thanks in advance, Rowdy
-- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (3)
-
Mike FABIAN
-
Rowdy Rednose
-
Stephen Holmes