SOLVED: From UTF-8 to octal and back

2010-06-21 Thread Alexander Batischev
On Mon, Jun 21, 2010 at 07:57:24AM +, Camaleón wrote:
> On Sun, 20 Jun 2010 20:36:49 +0300, Alexander Batischev wrote:
> 
> (...)
>  
> > The problem is: I don't know how to convert from usual string
> > ("Введение") to octal (represented above) and back. I mean, I understand
> > algorithm, but I don't know how to do it in a simple way. I thought
> > about writing small C program to do that, but I guess there are some
> > piece of software performing this task already, so I better ask in
> > mailing list first.
> > 
> > Any advices?
> 
> Maybe "uni2ascii" can help. It is included in Debian main repo.
> 
> http://billposer.org/Software/uni2ascii.html

Ah, thank you, Camaleón! That's exactly what I was looking for!

-- 
Regards,
Alexander Batischev

1024D/69093C81
F870 A381 B5F5 D2A1 1B35  4D63 A1A7 1C77 6909 3C81


signature.asc
Description: Digital signature


Re: From UTF-8 to octal and back

2010-06-21 Thread Camaleón
On Sun, 20 Jun 2010 20:36:49 +0300, Alexander Batischev wrote:

(...)
 
> The problem is: I don't know how to convert from usual string
> ("Введение") to octal (represented above) and back. I mean, I understand
> algorithm, but I don't know how to do it in a simple way. I thought
> about writing small C program to do that, but I guess there are some
> piece of software performing this task already, so I better ask in
> mailing list first.
> 
> Any advices?

Maybe "uni2ascii" can help. It is included in Debian main repo.

http://billposer.org/Software/uni2ascii.html

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.06.21.07.57...@gmail.com



From UTF-8 to octal and back

2010-06-20 Thread Alexander Batischev
Hi!

I'm currently playing with Djvu and have some troubles with text information
passed to it. By standard, all non-ASCII text should be represented as UTF-8
encoded octal string, i.e.
\320\222\320\262\320\265\320\264\320\265\320\275\320\270\320\265 (in this
particular example we have Russian word "Введение").

The problem is: I don't know how to convert from usual string ("Введение") to
octal (represented above) and back. I mean, I understand algorithm, but I don't
know how to do it in a simple way. I thought about writing small C program to
do that, but I guess there are some piece of software performing this task
already, so I better ask in mailing list first.

Any advices?

-- 
Regards,
Alexander Batischev

1024D/69093C81
F870 A381 B5F5 D2A1 1B35  4D63 A1A7 1C77 6909 3C81


signature.asc
Description: Digital signature