Re: [vos-d] Terangreal and Unicode?

2005-09-10 Thread Hugh Perkins
utf-8 sounds good fwiw.  for swig, you can define your own
functions quite eqsily to handle how conversions take place, so you can
probably just define your own conversion function for strings? You only
have to write the conversion function once, and they're generally quite
short.

On the other hand if sometimes strings are utf-8 and sometimes they're
not, it could get trickier... on the other hand since pure ascii maps
exactle to utf-8 thats probably not an issue?

Easy to say if it's not me writing the wrappers :-)

btw, i broke my wrist rollerblading and i'm typing wiyh one hand which
is why there are som any typos... the moral is: don't trust cheap
chinese wrist-guards :-/

HughOn 9/9/05, Reed Hedges <[EMAIL PROTECTED]> wrote:
On Fri, Sep 09, 2005 at 10:16:28AM -0400, Reed Hedges wrote:> Then property just needs wstring methods I guess.with conversion into utf8 to store in the std::string.___
vos-d mailing listvos-d@interreality.orghttp://www.interreality.org/cgi-bin/mailman/listinfo/vos-d

___
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d


Re: [vos-d] Terangreal and Unicode?

2005-09-10 Thread Reed Hedges
Hugh Perkins wrote:
> utf-8 sounds good

I'd say that we just use only utf-8, basically, and have conversions
from whatever wchar_t*/wstring are (are they 16 bit or 32 bit
characters? depends on the platform?) built into the property and
talkative apis (the conversion functions would be in vutil of course).

> on the other hand since pure ascii maps exactle to
> utf-8 thats probably not an issue?

The issue is if an application is expecting just ascii from, say,
property data and gets some utf8 high characters, they are discarded or
displayed as ascii "garbarge" characters.

Getting "ascii" when you are expecting utf-8 is of course no problem,
you will get valid utf-8 :)


> btw, i broke my wrist rollerblading and i'm typing wiyh one hand which is 
> why there are som any typos... the moral is: don't trust cheap chinese 
> wrist-guards :-/

Sounds bad! Good luck to heal quickly!

Reed

___
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d