Article View: news.software.nntp
Article #39991Re: Second newbie question: encoded Unicode strings?
From: greg andruk
Date: Mon, 20 Sep 1999 00:00
Date: Mon, 20 Sep 1999 00:00
29 lines
1679 bytes
1679 bytes
Bob Crispen <crispen@hiwaay.net> wrote: > Is there some public domain or GPLed C code that can translate > Unicode character strings to something sensible? That is, > starting with > =?ISO-2022-JP?B?GyRCJDckZSRDJDskLRsoQg==?= > in, say, a Subject: line or a name= field, is there a way to > convert it to wide characters, if there's a font that supports > them on the user's (Win9x) machine, or to some reasonable ASCII > string? That's not Unicode, but a Q-encoded header (You will sometimes see Unicode in these beasts, where something like UTF-8 appears instead of the ISO charset). See RFC 2047 and its predecessor, RFC 1522. The B and Q encodings are nothing more than Base64 and slightly tweaked quoted-printable. The ISO charsets have the same mappings as used in the MIME Content-Type header. > Or if Japanese is out of the question, how about Latin-1?: > =?iso-8859-1?Q?perch=E8?= no? Same thing. You can find some GPL'd sample code to do this in slrn, but any MIME library should handle this.
Technical Details
Message-ID:
<87r9juyvdp.fsf@banet.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<37E5C444.75818222@hiwaay.net>Show Full Headers
Complete Article Headers
Message-ID: <87r9juyvdp.fsf@banet.net> Subject: Re: Second newbie question: encoded Unicode strings? Date: Mon, 20 Sep 1999 00:00:00 +0000 From: greg andruk <meowing@banet.net> References: <37E5C444.75818222@hiwaay.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 527322517 X-Complaints-To: abuse@prserv.net X-Trace: 20 Sep 1999 06:01:02 GMT, 32.100.202.164 Organization: meow X-Meow: meow Newsgroups: news.software.nntp