ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Genix <genix@list.ru>
To: community@altlinux.ru
Subject: Re: [Comm] использование UTF
Date: Mon, 4 Oct 2004 18:16:39 +0400
Message-ID: <20041004181639.7e3b47a6.genix@list.ru> (raw)
In-Reply-To: <200410041801.45208.akrioukov@mail.ru>

On Mon, 4 Oct 2004 18:01:44 +0400
Alexej Kryukov <akrioukov@mail.ru> wrote:

> 
> > 2) Как можно преобразовать строку вида "D09CD0B0D0BCD0B0" (по
> > русски это было Мама) к человеческому виду (желательно средствами
> > QT)? В какой кодировке это может быть? Видно, что буква а в этом
> > слове имеет "код" D0B0.
> 
> Это, конечно, UTF-8, как она должна была бы выглядеть в
> шестнадцатеричном редакторе. Если же Вы видите такое в обычном
> текстовом файле (не в режиме шестнадцатеричного просмотра), то,
> значит, задача сводится к разбиению строки на пары символов (каждая
> пара будет представлять собой шестнадцатеричное число с кодом
> от 00 до FF) и замене каждой пары на байт с таким кодом.
> Полученный текст UTF-8 можно открывать в чем угодно.

Спасибо за наводку в нужном направлении.

-- 
У каждого в башке свои тараканы...


      reply	other threads:[~2004-10-04 14:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-04 11:55 Genix
2004-10-04 14:01 ` Alexej Kryukov
2004-10-04 14:16   ` Genix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041004181639.7e3b47a6.genix@list.ru \
    --to=genix@list.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git