all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Encoding multibyte strings
@ 2016-04-08  7:09 Eric Abrahamsen
  2016-04-08  7:28 ` Eli Zaretskii
       [not found] ` <mailman.31.1460100539.7477.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Abrahamsen @ 2016-04-08  7:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there.

I'm trying to get from this:

陈冬梅

to this:

CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E9=99=88=E5=86=AC=E6=A2=85

Assuming that the original characters were in utf-8, of course. So that
陈 is =E9=99=88, and so on.

I got this string by looking at a Vcard export from the Contacts app on
my Android phone. I'm trying to take an Emacs buffer and turn it into a
*.vcf card file to import into the same app -- basically I'm trying to
reverse-engineer the VCard encoding format so I can create a file to
feed to my phone.

I'm 99.9% sure that Emacs already comes with functions that will produce
my escaped coded string, but after many adventures with C-h f (during
which I learned quite a few unrelated tricks) I haven't found it. Can
someone enlighten me as to what the simplest way to do this is?

Thanks!

E




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-08 18:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-08  7:09 Encoding multibyte strings Eric Abrahamsen
2016-04-08  7:28 ` Eli Zaretskii
2016-04-08  7:40   ` Eric Abrahamsen
2016-04-08  7:48     ` Eli Zaretskii
2016-04-08  8:02       ` Eric Abrahamsen
     [not found] ` <mailman.31.1460100539.7477.help-gnu-emacs@gnu.org>
2016-04-08 18:53   ` B. T. Raven

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.