[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Openexr-devel] UNICODE support in openexr file I/O
From: |
Florian Kainz |
Subject: |
Re: [Openexr-devel] UNICODE support in openexr file I/O |
Date: |
Thu, 19 Jan 2006 14:37:45 -0800 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041207) |
Do you want to read and write files with Unicode names,
or do you want to store Unicode strings in the files?
Opening files with Unicode names is possible, provided
you write your own low-level file I/O classes (see
http://www.openexr.com/ReadingAndWritingImageFiles.pdf,
pages 22 to 24). You should be able to write code that
looks like this:
MyIstream istr ("กรุงเทพมหานคร");
TiledRgbaInputFile file (istr);
...
As Chris Cox already mentioned, storing wchar_t strings
is not a good idea; the representation of wchar_t is
implementation-dependent. Unicode strings that go into
the file should be converted to UTF-8 encoding.
UTF-8 Unicode strings consist of regular chars, so they
can be stored in an OpenEXR file.
The IlmImf library does not currently support conversion
between wchar_t and UTF-8; you will have to do the
conversion yourself. (By the way, if you have a simple
and portable way to do this, you may want to contribute
it to the OpenEXR project.)
Florian
Santiago wrote:
All the OpenEXR classes ( like TiledRgbaOutputFile ) only accepts old
ASCII "const char*" parameter to read/write files.... That's bad because
if I wanna name a file using extended characters like Ñç or even Kanji,
I can't .... Please... can you provide too a wchar_t version so we can
use plenty the UNICODE characters? thx
Concursa y llévate una PS2 two Envía *GENIOS* al *5959*
<http://juegos.ya.com/consolas_y_pc/2005/09/concurso-ps2.html>.
Ya.com ADSL Navega y habla 24h
ADSL 24h + Llamadas Nacionales y Locales 24h = 19,95 €/mes+IVA. Con
Router + Cuota Alta ¡gratis! http://acceso.ya.com/ADSLllamadas/4mb
------------------------------------------------------------------------
_______________________________________________
Openexr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/openexr-devel
- Re: [Openexr-devel] UNICODE support in openexr file I/O, (continued)
- Re: [Openexr-devel] UNICODE support in openexr file I/O, Florian Kainz, 2006/01/19
- Message not available
- Message not available
- Re: [Openexr-devel] UNICODE support in openexr file I/O, Bob Friesenhahn, 2006/01/19
- Re: [Openexr-devel] UNICODE support in openexr file I/O, Yves Poissant, 2006/01/20
- Re: [Openexr-devel] UNICODE support in openexr file I/O, Drew Hess, 2006/01/20
- Re: [Openexr-devel] UNICODE support in openexr file I/O, Yves Poissant, 2006/01/20
- Message not available
- Re: [Openexr-devel] UNICODE support in openexr file I/O, Daniel Léonard, 2006/01/20
Re: [Openexr-devel] UNICODE support in openexr file I/O, Drew Hess, 2006/01/19
Re: [Openexr-devel] UNICODE support in openexr file I/O,
Florian Kainz <=
RE: [Openexr-devel] UNICODE support in openexr file I/O, Luc-Eric Rousseau, 2006/01/19
RE: [Openexr-devel] UNICODE support in openexr file I/O, Luc-Eric Rousseau, 2006/01/20
[Openexr-devel] UNICODE support in openexr file I/O, Santiago , 2006/01/23
RE: [Openexr-devel] UNICODE support in openexr file I/O, Nick Porcino, 2006/01/23