F
Fritz Bayer
Hi,
I'm looking for a little program, which reads utf-8 data from a file
and writes it in the form of unicode escape into another text file.
Why am I looking for something like this? Well, I have a file which
contains utf-8 encoded data.
That data I would like to build staticly into my program. So I would
like to copy and paste it into a String constant (String
="\uxxxx\uxxxx...").
However, since I can't just open up a viewer and copy and paste the
contents (of course), I would have to convert it into unicode escape.
Then I could copy and paste those escape code into my program. I
thought that their must be some source code / program aroung which
does that?
Fritz
I'm looking for a little program, which reads utf-8 data from a file
and writes it in the form of unicode escape into another text file.
Why am I looking for something like this? Well, I have a file which
contains utf-8 encoded data.
That data I would like to build staticly into my program. So I would
like to copy and paste it into a String constant (String
="\uxxxx\uxxxx...").
However, since I can't just open up a viewer and copy and paste the
contents (of course), I would have to convert it into unicode escape.
Then I could copy and paste those escape code into my program. I
thought that their must be some source code / program aroung which
does that?
Fritz