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

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 sm

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