Re: unicode in hdf files

Brandon Long <[email protected]> Tue, 20 May 2008 14:14:35 -0700
Newsgroups gmane.text.clearsilver.general
Organization Fiction L Networks
Message-ID <20080520211435.GA11543@bl1>
If you use the utf-8 encoding for unicode, you can store values in HDF
just fine.

From python, you'd have to do something like:

hdf.setValue("Foo", unicode_string.encode('UTF-8'))

Brandon

On 05/19/08 zeegco uttered the following other thing:
> hello,
> I want to save unicode values in my HDF files to use them in my code
> (python code) and templates, but I don't now how can I  do this.
> 
> now, maybe because of my less understaning of clearsilver, I use
> expressions like this in my HDF files to set unicodes (infact not
> unicode there, only NCR :( )
> 
> myvar = &#5867;&#5868;&#5869;
> 
> how can I make it real unicode?
> 
> tnx
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
-- 
  "Life is routine punctuated by orgies." -- Aldous Huxley
                                           http://www.fiction.net/blong/